Skip to content

Commit fb803cb

Browse files
committed
fix compatibility with bahamut
1 parent cad1869 commit fb803cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

irctest/server_tests/chmodes/operator.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ def testChannelOperatorMode(self):
4444
# sender is a chanop, but target nick does not exist:
4545
self.sendLine("chanop", "MODE #chan +o nobody")
4646
messages = self.getMessages("chanop")
47-
self.assertEqual(len(messages), 1)
48-
self.assertIn(messages[0].command, [ERR_NOSUCHNICK, ERR_USERNOTINCHANNEL])
47+
# ERR_NOSUCHNICK is typical, Bahamut additionally sends ERR_USERNOTINCHANNEL
48+
self.assertGreaterEqual(len(messages), 1)
49+
self.assertLessEqual(len(messages), 2)
50+
for message in messages:
51+
self.assertIn(message.command, [ERR_NOSUCHNICK, ERR_USERNOTINCHANNEL])
4952

5053
# target channel does not exist, but target nick does:
5154
self.sendLine("chanop", "MODE #nonexistentchan +o chanop")

0 commit comments

Comments
 (0)