aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2017-07-21 16:18:45 +0200
committerTollef Fog Heen <tfheen@err.no>2017-07-21 16:18:45 +0200
commitcf75036c2e570e5055022425ffcb217500af0003 (patch)
treee845b7ee35e9ebd81d3c95274521f817c1d82c94 /wee_slack.py
parent024e27ff9e00fc1f83d7069f67200ffb1c5e8dbf (diff)
downloadwee-slack-cf75036c2e570e5055022425ffcb217500af0003.tar.gz
Fix use-before-assignment when fetching channel to send to
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 31ee7f4..8b75905 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2840,7 +2840,7 @@ def msg_command_cb(data, current_buffer, args):
team = EVENTROUTER.weechat_controller.buffers[current_buffer].team
cmap = team.get_channel_map()
if who in cmap:
- channel = team.channels[cmap[channel]]
+ channel = team.channels[cmap[who]]
channel.send_message(message)
return w.WEECHAT_RC_OK_EAT