diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-18 00:23:04 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-20 23:55:54 +0200 |
commit | b418f492c081c58a89dc06d91159948b41915b82 (patch) | |
tree | f24df1f71dd68cb667cfeb7d638c0dd2c28029a6 /wee_slack.py | |
parent | 8a733b744494dd06b40790036f778d36c9984f8e (diff) | |
download | wee-slack-b418f492c081c58a89dc06d91159948b41915b82.tar.gz |
Don't throw error if trying to rename team buffer
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 0cdf29e..06f225e 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -833,7 +833,7 @@ def reconnect_callback(*args): @utf8_decode def buffer_renamed_cb(data, signal, current_buffer): channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer) - if channel and not channel.buffer_rename_in_progress: + if isinstance(channel, SlackChannelCommon) and not channel.buffer_rename_in_progress: if w.buffer_get_string(channel.channel_buffer, "old_full_name"): channel.label_full_drop_prefix = True |