1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-22 19:59:55 -05:00

Fix borking of ACTION sedding

This commit is contained in:
Thomas Mannay 2017-03-13 14:06:55 +00:00 committed by GitHub
parent 74efcd0f66
commit ed99ca5c9d

View File

@ -86,6 +86,10 @@ def notice(msg):
send.flush() send.flush()
def privmsg(msg): def privmsg(msg):
if msg[:7] == '\x01ACTION':
send.write('PRIVMSG ' + channel + ' :' + '\x01' +
''.join(c for c in msg if c.isprintable()) + '\x01\r\n')
else:
send.write('PRIVMSG ' + channel + ' :' + send.write('PRIVMSG ' + channel + ' :' +
''.join(c for c in msg if c.isprintable()) + '\r\n') ''.join(c for c in msg if c.isprintable()) + '\r\n')
send.flush() send.flush()