diff --git a/src/Channel.py b/src/Channel.py index 64b6f5aa6..13fec327a 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -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)) diff --git a/test/test_Channel.py b/test/test_Channel.py index e83b13903..85c8ac69b 100644 --- a/test/test_Channel.py +++ b/test/test_Channel.py @@ -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():