forked from swee/MeowNex
Fix a bug that malforms /me in some clients
This commit is contained in:
parent
2144d8cd5b
commit
9fdb80a131
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue