aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Evelyn2017-07-18 18:39:23 +0100
committerGravatar Evelyn2017-07-18 18:39:23 +0100
commite245b64b585749bf65f68755f3201f26ef6393ef (patch)
tree9e9dbec1d46c618788deaea6baaa727764bae7da
parentNo need to underscore server now (diff)
fix the privmsg
-rw-r--r--IRCLineHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index b057afa5..eb3c5223 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -298,7 +298,7 @@ def handle_PRIVMSG(data):
if action:
message = message.replace("\01ACTION ", "", 1)[:-1]
if target[0] in server.channel_types:
- channel = server.get_channel(line_split[2])
+ channel = server.get_channel(data.args[0])
bot.events.on("received").on("message").on("channel").call(
data=data, user=user, message=message, message_split=message_split,
channel=channel, action=action)