mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix a bug where nickInChannel would append channel to the args list.
This commit is contained in:
parent
0ea4c3c12a
commit
88a906df84
@ -405,7 +405,9 @@ def callerInGivenChannel(irc, msg, args, state):
|
||||
irc.errorInvalid('channel', args[0])
|
||||
|
||||
def nickInChannel(irc, msg, args, state):
|
||||
st = state.essence()
|
||||
inChannel(irc, msg, args, state)
|
||||
state.args = st.args
|
||||
if args[0] not in irc.state.channels[state.channel].users:
|
||||
irc.error('%s is not in %s.' % (args[0], state.channel), Raise=True)
|
||||
state.args.append(args.pop(0))
|
||||
|
Loading…
Reference in New Issue
Block a user