diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-10 08:32:06 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-10 08:32:06 -0800 |
commit | 190e8da85c582d9f387fa321395e95287b32b40a (patch) | |
tree | 7b645fedb22d4b88ad6d1a6b940cc7ca8c0e5830 | |
parent | efe97756955e89ea31f70ad0d3cbd53d134b0126 (diff) | |
download | wee-slack-190e8da85c582d9f387fa321395e95287b32b40a.tar.gz |
also check that it even has .members
-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 53efbb4..a192881 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -705,7 +705,7 @@ def complete_next_cb(data, current_buffer, command): current_channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer, None) #channel = channels.find(current_buffer) - if current_channel is None or current_channel.members is None: + if not hasattr(current_channel, 'members') or current_channel is None or current_channel.members is None: return w.WEECHAT_RC_OK line_input = w.buffer_get_string(current_buffer, "input") |