From 2f15eb2418f76d043b3ba151348f851b7cf34249 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 22 May 2008 20:58:22 +0000 Subject: [PATCH] getHaveOp needs to call getChannel if state.channel isn't set --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index 79d32019f..4f0bbf0d9 100644 --- a/src/commands.py +++ b/src/commands.py @@ -249,6 +249,8 @@ def getNetworkIrc(irc, msg, args, state, errorIfNoMatch=False): state.args.append(irc) def getHaveOp(irc, msg, args, state, action='do that'): + if not state.channel: + getChannel(irc, msg, args, state) if state.channel not in irc.state.channels: state.error('I\'m not even in %s.' % state.channel, Raise=True) if not irc.state.channels[state.channel].isOp(irc.nick):