use stdout.append_prefix to put user nickname in without color

This commit is contained in:
jesopo 2019-07-03 14:04:36 +01:00
parent d30f01670e
commit 61d354eb94

View file

@ -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,