mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bug #856997.
This commit is contained in:
parent
ae44a337be
commit
3978be5cdf
@ -464,7 +464,7 @@ class Channel(callbacks.Privmsg):
|
||||
"""
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
c = ircdb.channels.getChannel(channel)
|
||||
L = c.capabilities[:]
|
||||
L = list(c.capabilities)
|
||||
L.sort()
|
||||
irc.reply(msg, '[%s]' % ', '.join(L))
|
||||
|
||||
|
@ -54,13 +54,16 @@ class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
## self.assertNotError('channel removecapability foo op')
|
||||
## self.assertResponse('user capabilities foo', '[]')
|
||||
|
||||
def testCapabilities(self):
|
||||
self.assertNotError('channel capabilities')
|
||||
|
||||
def testUnban(self):
|
||||
self.assertError('unban foo!bar@baz')
|
||||
self.irc.feedMsg(ircmsgs.op(self.channel, self.nick))
|
||||
m = self.getMsg('unban foo!bar@baz')
|
||||
self.assertEqual(m.command, 'MODE')
|
||||
self.assertEqual(m.args, (self.channel, '-b', 'foo!bar@baz'))
|
||||
self.assertNotError(' ')
|
||||
self.assertNoResponse(' ', 2)
|
||||
|
||||
def testErrorsWithoutOps(self):
|
||||
for s in 'op deop halfop dehalfop voice devoice kick'.split():
|
||||
|
Loading…
Reference in New Issue
Block a user