1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-25 20:47:51 -05:00

Compare commits

..

No commits in common. "9d1d5a6da99b7a3630274c9f8bd836073567fef0" and "07f5679bedf5103cd30db95407d1546d0d65efb3" have entirely different histories.

View File

@ -34,7 +34,7 @@ class Tube:
'''Send a message.''' '''Send a message.'''
if message[:7] == '\x01ACTION': if message[:7] == '\x01ACTION':
with open(self.outgoing, 'w', encoding='utf-8') as send: with open(self.outgoing, 'w', encoding='utf-8') as send:
sanitised = ''.join(c for c in message if c.isprintable()) sanitised = ''.join(c for c in msg if c.isprintable())
send.write('PRIVMSG {} :\x01{}\x01\r\n'.format(channel, sanitised)) send.write('PRIVMSG {} :\x01{}\x01\r\n'.format(channel, sanitised))
else: else:
with open(self.outgoing, 'w', encoding='utf-8') as send: with open(self.outgoing, 'w', encoding='utf-8') as send: