mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
getHaveOp needs to call getChannel if state.channel isn't set
This commit is contained in:
parent
4827155c6b
commit
2f15eb2418
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user