diff options
| author | 2018-08-31 13:20:35 +0100 | |
|---|---|---|
| committer | 2018-08-31 13:20:35 +0100 | |
| commit | da1e87e335aa82d502808b5a504e9a641ef383c8 (patch) | |
| tree | e926e09b19ccbfaa370c2278a4c0739d6b2912ef /IRCLineHandler.py | |
| parent | Remove _unhook and always use get_hooks() in IRCLineHandler (diff) | |
| signature | ||
Some networks don't prefix channel names in INVITE messages
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index e8a27c74..dd926101 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -309,7 +309,8 @@ class LineHandler(object): def invite(self, event): nickname, username, hostname = Utils.seperate_hostmask( event["prefix"]) - target_channel = event["arbitrary"] + + target_channel = event["arbitrary"] or event["args"][1] user = event["server"].get_user(nickname) self.events.on("received").on("invite").call( user=user, target_channel=target_channel, |
