for consistency, make NOTICE a str
parent
172349def2
commit
e8442f253f
2
irc.py
2
irc.py
|
@ -200,7 +200,7 @@ class Bot(asynchat.async_chat):
|
|||
return self.msg(recipient, textu)
|
||||
|
||||
def notice(self, dest, text):
|
||||
self.write((b'NOTICE', dest), text)
|
||||
self.write(('NOTICE', dest), text)
|
||||
|
||||
def error(self, origin):
|
||||
try:
|
||||
|
|
|
@ -86,4 +86,4 @@ class BotTest(unittest.TestCase):
|
|||
notice = "This is a notice!"
|
||||
self.bot.notice('jqh', notice)
|
||||
|
||||
mock_write.assert_called_once_with((b'NOTICE', 'jqh'), notice)
|
||||
mock_write.assert_called_once_with(('NOTICE', 'jqh'), notice)
|
||||
|
|
Loading…
Reference in New Issue