From 61d354eb941e9a71dd9bbdd3913b6daea95fe820 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 3 Jul 2019 14:04:36 +0100 Subject: [PATCH] use stdout.append_prefix to put user nickname in without color --- modules/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather.py b/modules/weather.py index 4314f0f3..99389b8d 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -74,7 +74,7 @@ class Module(ModuleManager.BaseModule): wind_speed_m = "%sMPh" % round(0.6214*wind_speed, 1) if not nickname == None: - event["stdout"].set_prefix("Weather|%s" % nickname) + event["stdout"].append_prefix("|%s" % nickname) event["stdout"].write( "(%s) %s/%s | %s | Humidity: %s | Wind: %s/%s" % ( location_str, celsius, fahrenheit, description, humidity,