diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-01-19 15:45:02 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-01-19 15:45:02 -0800 |
commit | 18ddc07c0a1b69fa80e293130db5e53d54bc6b7f (patch) | |
tree | 37e4773471dfef6b56573d2044310f3f79dce017 /wee_slack.py | |
parent | fc43cfe36fe4e6da64beccd419cf320545bc7bae (diff) | |
download | wee-slack-18ddc07c0a1b69fa80e293130db5e53d54bc6b7f.tar.gz |
only change buffer short_name if it actually changed
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 7187a32..6879a30 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -509,7 +509,8 @@ class Channel(SlackThing): else: new_name = self.name if self.channel_buffer: - w.buffer_set(self.channel_buffer, "short_name", color + new_name) + if w.buffer_get_string(self.channel_buffer, "short_name") != (color + new_name): + w.buffer_set(self.channel_buffer, "short_name", color + new_name) def buffer_prnt(self, user='unknown user', message='no message', time=0): set_read_marker = False |