diff options
author | jomo <github@jomo.tv> | 2014-07-09 00:24:55 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-07-09 00:24:55 +0200 |
commit | 16217e125130484c0264a0596b8f4e17573b5c13 (patch) | |
tree | 3fc789838ce89156a8267d4f46c5300700201f20 /motd.py | |
parent | c34c533dca70d3f2c14bee3e1fedec43c7481514 (diff) |
fix double plugin header
Diffstat (limited to 'motd.py')
-rw-r--r-- | motd.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |