mirror of
https://github.com/sys-fs/seddy
synced 2024-11-22 03:44:17 -05:00
Compare commits
2 Commits
07f5679bed
...
9d1d5a6da9
Author | SHA1 | Date | |
---|---|---|---|
|
9d1d5a6da9 | ||
|
ebc51bca37 |
@ -34,7 +34,7 @@ class Tube:
|
||||
'''Send a message.'''
|
||||
if message[:7] == '\x01ACTION':
|
||||
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))
|
||||
else:
|
||||
with open(self.outgoing, 'w', encoding='utf-8') as send:
|
||||
|
Loading…
Reference in New Issue
Block a user