aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4d95fa8..8110ee7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4154,8 +4154,10 @@ def away_command_cb(data, current_buffer, args):
all_servers, message = re.match('^/away( -all)? ?(.*)', args).groups()
if all_servers:
team_buffers = [team.channel_buffer for team in EVENTROUTER.teams.values()]
- else:
+ elif current_buffer in EVENTROUTER.weechat_controller.buffers:
team_buffers = [current_buffer]
+ else:
+ return w.WEECHAT_RC_OK
for team_buffer in team_buffers:
if message: