diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index 5e5ac93..c4af353 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -1032,7 +1032,7 @@ def multiplayer(fro, chan, message): def mpSettings(): _match = glob.matches.matches[getMatchIDFromChannel(chan)] msg = "PLAYERS IN THIS MATCH:\n" - empty = None + empty = True for slot in _match.slots: if slot.user is None: continue @@ -1054,7 +1054,7 @@ def multiplayer(fro, chan, message): mods=" (+ {})".format(generalUtils.readableMods(slot.mods)) if slot.mods > 0 else "" ) if empty: - msg += "\nNobody." + msg += "Nobody.\n" return msg diff --git a/helpers/chatHelper.py b/helpers/chatHelper.py index 06a5de1..440442b 100644 --- a/helpers/chatHelper.py +++ b/helpers/chatHelper.py @@ -256,6 +256,8 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True): if glob.irc == True and toIRC == True: messageSplitInLines = message.encode("latin-1").decode("utf-8").split("\n") for line in messageSplitInLines: + if line == messageSplitInLines[:1] and line == "": + continue glob.ircServer.banchoMessage(fro, to, line) # Spam protection (ignore FokaBot)