From b1d1991873d26e95ea4f4c2b62191e505c5ea0dd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Nov 2004 04:47:21 +0000 Subject: [PATCH] Converted to new method. --- src/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.py b/src/commands.py index b9cd541d7..2aeaf69db 100644 --- a/src/commands.py +++ b/src/commands.py @@ -251,7 +251,7 @@ def getChannelDb(irc, msg, args, state, **kwargs): def getHaveOp(irc, msg, args, state, action='do that'): if state.channel not in irc.state.channels: irc.error('I\'m not even in %s.' % state.channel, Raise=True) - if irc.nick not in irc.state.channels[state.channel].ops: + if not irc.state.channels[state.channel].isOp(irc.nick): irc.error('I need to be opped to %s.' % action, Raise=True) def validChannel(irc, msg, args, state):