aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'IRCLineHandler.py')
-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,