Fix a bug that malforms /me in some clients

This commit is contained in:
Swee 2024-09-10 21:55:51 -07:00
parent 2144d8cd5b
commit 9fdb80a131

View file

@ -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: