mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-01 07:04:06 +01:00
States don't have a copy method.
This commit is contained in:
parent
0a7fdae08d
commit
70da904be2
@ -400,9 +400,9 @@ def callerInGivenChannel(irc, msg, args, state):
|
||||
irc.errorInvalid('channel', args[0])
|
||||
|
||||
def nickInChannel(irc, msg, args, state):
|
||||
st = state.copy()
|
||||
originalArgs = state.args[:]
|
||||
inChannel(irc, msg, args, state)
|
||||
state.args = st.args
|
||||
state.args = originalArgs
|
||||
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