assign local var "modes"

This commit is contained in:
jesopo 2019-06-06 11:22:45 +01:00
parent 4c6a398f53
commit 5299f816af

View file

@ -96,7 +96,9 @@ def mode(events, event):
events.on("received.mode.channel").call(modes=modes, mode_args=_args, events.on("received.mode.channel").call(modes=modes, mode_args=_args,
channel=channel, server=event["server"], user=user) channel=channel, server=event["server"], user=user)
elif event["server"].is_own_nickname(target): elif event["server"].is_own_nickname(target):
_own_modes(event["server"], event["args"][1]) modes = event["args"][1]
_own_modes(event["server"], modes)
events.on("self.mode").call(modes=modes, server=event["server"]) events.on("self.mode").call(modes=modes, server=event["server"])
event["server"].send_who(event["server"].nickname) event["server"].send_who(event["server"].nickname)