aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2016-03-28 19:36:52 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2016-03-28 19:42:56 +0200
commitc2ea5f4ed4c8bc5caae73ead6c90f51c6565e5cf (patch)
tree8403532b2daeeec7e9c55c940e94f9aa774d8313
parentd58fe9dd98b5bbb2ecd3e5bb12fe7a916d7b457d (diff)
downloadwee-slack-c2ea5f4ed4c8bc5caae73ead6c90f51c6565e5cf.tar.gz
Set buffer localvars for channel and server
These are the same as what the irc plugin sets, and can be used in the logger masks among other things. This fixes #188.
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2b84133..11430f7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -419,6 +419,8 @@ class Channel(object):
w.buffer_set(self.channel_buffer, "localvar_set_type", 'private')
else:
w.buffer_set(self.channel_buffer, "localvar_set_type", 'channel')
+ w.buffer_set(self.channel_buffer, "localvar_set_channel", self.name)
+ w.buffer_set(self.channel_buffer, "localvar_set_server", self.server.server_buffer_name)
w.buffer_set(self.channel_buffer, "short_name", self.name)
buffer_list_update_next()