aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorluk1337 <priv.luk@gmail.com>2019-05-29 15:50:41 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-05-29 15:50:41 +0200
commit976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 (patch)
treea69b53f8a4d5af7f45b29afc46e4d6e340502c16 /wee_slack.py
parent7bff4f2856a2cc8126fa8d2fecbd07e0422f2fb4 (diff)
downloadwee-slack-976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6.tar.gz
Fix /topic command output (#691)
* This change makes sure the /topic command outputs 'Topic for #random is ""' instead of 'Topic for #random is "{'value': ''}"'.
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 a1e635f..d2c94e4 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3489,7 +3489,7 @@ def topic_command_cb(data, current_buffer, command):
return w.WEECHAT_RC_OK_EAT
if topic is None:
- w.prnt(channel.channel_buffer, 'Topic for {} is "{}"'.format(channel.name, channel.topic))
+ w.prnt(channel.channel_buffer, 'Topic for {} is "{}"'.format(channel.name, channel.topic['value']))
else:
s = SlackRequest(team.token, "channels.setTopic", {"channel": channel.identifier, "topic": topic}, team_hash=team.team_hash)
EVENTROUTER.receive(s)