summaryrefslogtreecommitdiff
path: root/motd.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-09 00:24:55 +0200
committerjomo <github@jomo.tv>2014-07-09 00:24:55 +0200
commit16217e125130484c0264a0596b8f4e17573b5c13 (patch)
tree3fc789838ce89156a8267d4f46c5300700201f20 /motd.py
parentc34c533dca70d3f2c14bee3e1fedec43c7481514 (diff)
fix double plugin header
Diffstat (limited to 'motd.py')
-rw-r--r--motd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/motd.py b/motd.py
index 611bb20..42e4c36 100644
--- a/motd.py
+++ b/motd.py
@@ -12,7 +12,6 @@ def onGetMotdCommand(sender, args):
@hook.command("setmotd")
def onSetMotdCommand(sender, args):
global motd
- plugHeader(sender, "MOTD")
if sender.hasPermission("utils.setmotd"):
if not checkargs(sender, args, 1, -1):
return True
@@ -20,10 +19,11 @@ def onSetMotdCommand(sender, args):
motd = colorify(" ".join(args).replace("\\n", "\n"))
broadcast("", plugHeader(name="MOTD"))
broadcast("", "&aNew MOTD:&r\n%s" % motd)
+ broadcast(" ")
else:
noperm(sender)
return True
@hook.event("server.ServerListPingEvent")
def onServerPing(event):
- event.setMotd(motd) \ No newline at end of file
+ event.setMotd(motd)