From 991673779bc23de83fb172b37c9a94c7e89deda2 Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 4 Jul 2014 02:00:04 +0200 Subject: [PATCH] fix broadcast --- motd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/motd.py b/motd.py index 2b84737..1f4d9d2 100644 --- a/motd.py +++ b/motd.py @@ -1,5 +1,6 @@ #pylint: disable=F0401 from helpers import * +from traceback import format_exc as print_traceback motd = server.getMotd() @@ -18,8 +19,8 @@ def onSetMotdCommand(sender, args): return True motd = colorify(" ".join(args)) - broadcast(plugHeader(name="MOTD")) - broadcast("&aNew MOTD:&r\n%s" % motd) + broadcast("", plugHeader(name="MOTD")) + broadcast("", "&aNew MOTD:&r\n%s" % motd) else: noperm(sender) return True