1
0
mirror of https://github.com/sys-fs/seddy synced 2024-11-24 20:26:16 -05:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Mannay
9d1d5a6da9 merge 2019-02-01 17:23:27 +00:00
Thomas Mannay
ebc51bca37 Linting 2019-02-01 17:22:24 +00:00

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 msg if c.isprintable()) sanitised = ''.join(c for c in message 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: