aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-31 13:20:35 +0100
committerGravatar dongfix2018-08-31 13:44:39 +0100
commit38e1b5d0adcf061c7bd559c7c1403ada15cdc7ed (patch)
treee926e09b19ccbfaa370c2278a4c0739d6b2912ef
parentRemove _unhook and always use get_hooks() in IRCLineHandler (diff)
signature
Some networks don't prefix channel names in INVITE messages
-rw-r--r--IRCLineHandler.py3
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,