diff options
| author | 2017-07-20 21:19:56 +0100 | |
|---|---|---|
| committer | 2017-07-20 21:19:56 +0100 | |
| commit | ff31dd2bb0d81837da09b0a66c56e2ca4d8f8d6e (patch) | |
| tree | 92a955f59c90f9292fd55fb236e3fe39cb4f65d5 /IRCLineHandler.py | |
| parent | Don't assume a reason will always be present in a PART (diff) | |
| signature | ||
oops, that should be data.args, not args >.>
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index bb9e7a4f..5de9f6c9 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -167,7 +167,7 @@ def handle_PART(data): server = data.server nickname, username, hostname = Utils.seperate_hostmask(data.prefix) channel = server.get_channel(data.args[0]) - reason = data.args[1] if len(args)>1 else "" + reason = data.args[1] if len(data.args)>1 else "" if not server.is_own_nickname(nickname): user = server.get_user(nickname) bot.events.on("received").on("part").call(data=data, channel=channel, |
