aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2016-09-24 22:47:04 +0200
committerTollef Fog Heen <tfheen@err.no>2016-09-24 22:47:04 +0200
commitd44e12d23b364b2abde2b0e2c4490ccb6c778329 (patch)
tree4b5f4cfccbd412a25ed401f8165f32770ca7f1db /wee_slack.py
parent33e9299b1ce49ffeea1716dbad22f9af213cf6a0 (diff)
downloadwee-slack-d44e12d23b364b2abde2b0e2c4490ccb6c778329.tar.gz
Update topic in channel object when changing the topic
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
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()