mirror of https://github.com/progval/irctest.git
fix relaymsg test fail code
This commit is contained in:
parent
8c66157a9e
commit
5aeb297de5
|
@ -47,7 +47,7 @@ class RelaymsgTestCase(cases.BaseServerTestCase):
|
||||||
self.sendLine('qux', 'RELAYMSG %s smt/discord :hi a third time' % (chname,))
|
self.sendLine('qux', 'RELAYMSG %s smt/discord :hi a third time' % (chname,))
|
||||||
response = self.getMessages('qux')[0]
|
response = self.getMessages('qux')[0]
|
||||||
self.assertEqual(response.command, 'FAIL')
|
self.assertEqual(response.command, 'FAIL')
|
||||||
self.assertEqual(response.params[:2], ['RELAYMSG', 'NOT_PRIVED'])
|
self.assertEqual(response.params[:2], ['RELAYMSG', 'PRIVS_NEEDED'])
|
||||||
|
|
||||||
# grant qux chanop, allowing relaymsg
|
# grant qux chanop, allowing relaymsg
|
||||||
self.sendLine('baz', 'MODE %s +o qux' % (chname,))
|
self.sendLine('baz', 'MODE %s +o qux' % (chname,))
|
||||||
|
|
Loading…
Reference in New Issue