summaryrefslogtreecommitdiff
path: root/motd.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-04 02:04:59 +0200
committerjomo <github@jomo.tv>2014-07-04 02:04:59 +0200
commit6534922886f1ec977ed06d253410992260a5a9ba (patch)
treeb4a4b4bde7977691b70bd2791842fcffeaa74ae5 /motd.py
parent991673779bc23de83fb172b37c9a94c7e89deda2 (diff)
allow newlines
Diffstat (limited to 'motd.py')
-rw-r--r--motd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/motd.py b/motd.py
index 1f4d9d2..611bb20 100644
--- a/motd.py
+++ b/motd.py
@@ -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: