From 9fdb80a13159064f2a0d541b28c9a46e40d4b0c7 Mon Sep 17 00:00:00 2001 From: Swee Date: Tue, 10 Sep 2024 21:55:51 -0700 Subject: [PATCH] Fix a bug that malforms /me in some clients --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index 05b5a19..64883ce 100644 --- a/sweebot.py +++ b/sweebot.py @@ -74,7 +74,7 @@ class bot_irc: self.irc_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def send_irc(self, channel, msg): - self.irc_socket.send(bytes("PRIVMSG " + channel + " :" + msg + " \n", "UTF-8")) + self.irc_socket.send(bytes("PRIVMSG " + channel + " :" + msg + "\n", "UTF-8")) def connect_irc(self, server, port, channel, bot_nick, bot_pass, bot_nickpass): print("Server connection: " + server) @@ -384,7 +384,7 @@ while True: multiline(f"\x01ACTION eats some {choice(snacks)}\x01", channel) - #lif command[0] == "$sed": + #elif command[0] == "$sed": # if len(command) > 1: #try: # if True: