for consistency, make NOTICE a str
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user