diff --git a/sweebot.py b/sweebot.py index 9b90ad6..9cb1b8c 100644 --- a/sweebot.py +++ b/sweebot.py @@ -338,6 +338,8 @@ while True: cont = " ".join(command) if not channel in logs: logs[channel] = [{"nick": nick, "content": cont}] + else: + logs[channel].append({"nick": nick, "content": cont}) if len(logs[channel]) > 128: logs[channel] = logs[channel][:128] #open("log-text-"+channel, "a").write(" ".join(command) + "\n") #open("log-name-"+channel, "a").write(nick + "\n")