diff options
author | jomo <github@jomo.tv> | 2014-07-04 02:04:59 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-07-04 02:04:59 +0200 |
commit | 6534922886f1ec977ed06d253410992260a5a9ba (patch) | |
tree | b4a4b4bde7977691b70bd2791842fcffeaa74ae5 /motd.py | |
parent | 991673779bc23de83fb172b37c9a94c7e89deda2 (diff) |
allow newlines
Diffstat (limited to 'motd.py')
-rw-r--r-- | motd.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,6 +1,5 @@ #pylint: disable=F0401 from helpers import * -from traceback import format_exc as print_traceback motd = server.getMotd() @@ -18,7 +17,7 @@ def onSetMotdCommand(sender, args): if not checkargs(sender, args, 1, -1): return True - motd = colorify(" ".join(args)) + motd = colorify(" ".join(args).replace("\\n", "\n")) broadcast("", plugHeader(name="MOTD")) broadcast("", "&aNew MOTD:&r\n%s" % motd) else: |