Archived
fix broadcast
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#pylint: disable=F0401
|
#pylint: disable=F0401
|
||||||
from helpers import *
|
from helpers import *
|
||||||
|
from traceback import format_exc as print_traceback
|
||||||
|
|
||||||
motd = server.getMotd()
|
motd = server.getMotd()
|
||||||
|
|
||||||
@@ -18,8 +19,8 @@ def onSetMotdCommand(sender, args):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
motd = colorify(" ".join(args))
|
motd = colorify(" ".join(args))
|
||||||
broadcast(plugHeader(name="MOTD"))
|
broadcast("", plugHeader(name="MOTD"))
|
||||||
broadcast("&aNew MOTD:&r\n%s" % motd)
|
broadcast("", "&aNew MOTD:&r\n%s" % motd)
|
||||||
else:
|
else:
|
||||||
noperm(sender)
|
noperm(sender)
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user