From dd2e16ef57a642c882ee5ef3fd65e2b6ad5e6fc7 Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 4 Jul 2014 02:04:59 +0200 Subject: [PATCH] allow newlines --- motd.py | 3 +-- 1 file changed, 1 insertion(+), 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: