aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-06-18 00:23:04 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-20 23:55:54 +0200
commitb418f492c081c58a89dc06d91159948b41915b82 (patch)
treef24df1f71dd68cb667cfeb7d638c0dd2c28029a6 /wee_slack.py
parent8a733b744494dd06b40790036f778d36c9984f8e (diff)
downloadwee-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.py2
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