allow newlines

This commit is contained in:
jomo
2014-07-04 02:04:59 +02:00
parent 217dc64c87
commit dd2e16ef57

View File

@@ -1,6 +1,5 @@
#pylint: disable=F0401 #pylint: disable=F0401
from helpers import * from helpers import *
from traceback import format_exc as print_traceback
motd = server.getMotd() motd = server.getMotd()
@@ -18,7 +17,7 @@ def onSetMotdCommand(sender, args):
if not checkargs(sender, args, 1, -1): if not checkargs(sender, args, 1, -1):
return True return True
motd = colorify(" ".join(args)) motd = colorify(" ".join(args).replace("\\n", "\n"))
broadcast("", plugHeader(name="MOTD")) broadcast("", plugHeader(name="MOTD"))
broadcast("", "&aNew MOTD:&r\n%s" % motd) broadcast("", "&aNew MOTD:&r\n%s" % motd)
else: else: