diff options
author | Tollef Fog Heen <tfheen@err.no> | 2016-09-24 22:47:04 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2016-09-24 22:47:04 +0200 |
commit | d44e12d23b364b2abde2b0e2c4490ccb6c778329 (patch) | |
tree | 4b5f4cfccbd412a25ed401f8165f32770ca7f1db | |
parent | 33e9299b1ce49ffeea1716dbad22f9af213cf6a0 (diff) | |
download | wee-slack-d44e12d23b364b2abde2b0e2c4490ccb6c778329.tar.gz |
Update topic in channel object when changing the topic
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index c53bab8..d372991 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -550,8 +550,8 @@ class Channel(object): return " ".join(message) def set_topic(self, topic): - topic = topic.encode('utf-8') - w.buffer_set(self.channel_buffer, "title", topic) + self.topic = topic.encode('utf-8') + w.buffer_set(self.channel_buffer, "title", self.topic) def open(self, update_remote=True): self.create_buffer() |