diff --git a/src/ChannelCommands.py b/src/ChannelCommands.py index f3e346f24..e81803658 100755 --- a/src/ChannelCommands.py +++ b/src/ChannelCommands.py @@ -332,7 +332,7 @@ class ChannelCommands(callbacks.Privmsg): value = True elif value == 'False': value = False - c = ircdb.channels.privmsgs.getChannel(channel) + c = ircdb.channels.getChannel(channel) c.addCapability(capability, value) ircdb.channels.setChannel(channel, c) irc.reply(msg, conf.replySuccess)