Fix a bug where nickInChannel would add the channel to the args list.

This commit is contained in:
James Vega 2005-01-28 22:53:59 +00:00
parent 0d693e8b9d
commit 6f2aec352a

View File

@ -400,7 +400,9 @@ def callerInGivenChannel(irc, msg, args, state):
irc.errorInvalid('channel', args[0]) irc.errorInvalid('channel', args[0])
def nickInChannel(irc, msg, args, state): def nickInChannel(irc, msg, args, state):
st = state.copy()
inChannel(irc, msg, args, state) inChannel(irc, msg, args, state)
state.args = st.args
if args[0] not in irc.state.channels[state.channel].users: if args[0] not in irc.state.channels[state.channel].users:
irc.error('%s is not in %s.' % (args[0], state.channel), Raise=True) irc.error('%s is not in %s.' % (args[0], state.channel), Raise=True)
state.args.append(args.pop(0)) state.args.append(args.pop(0))