From 6f2aec352abbd0f77d0578c1316f46e7a0d6fe81 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 28 Jan 2005 22:53:59 +0000 Subject: [PATCH] Fix a bug where nickInChannel would add the channel to the args list. --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index 09fab2963..9fb65c203 100644 --- a/src/commands.py +++ b/src/commands.py @@ -400,7 +400,9 @@ def callerInGivenChannel(irc, msg, args, state): irc.errorInvalid('channel', args[0]) def nickInChannel(irc, msg, args, state): + st = state.copy() 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))