diff options
author | Tollef Fog Heen <tfheen@err.no> | 2017-07-21 16:18:45 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2017-07-21 16:18:45 +0200 |
commit | cf75036c2e570e5055022425ffcb217500af0003 (patch) | |
tree | e845b7ee35e9ebd81d3c95274521f817c1d82c94 /wee_slack.py | |
parent | 024e27ff9e00fc1f83d7069f67200ffb1c5e8dbf (diff) | |
download | wee-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.py | 2 |
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 |