aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-10-17 10:41:55 -0700
committerRyan Huber <rhuber@gmail.com>2014-10-17 10:41:55 -0700
commit7b3032ab1281b3505a4e4275de8f035759dfe705 (patch)
treed17518594cf59b1d6a30a43816c828470e1212f8 /wee_slack.py
parent1d0dddffc8b1aa796521755ff82c95195ea00cac (diff)
downloadwee-slack-7b3032ab1281b3505a4e4275de8f035759dfe705.tar.gz
fix channel name for neveraway. change "..." annoyance
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 145edfc..f1af899 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -73,7 +73,7 @@ class BufferTmpRenamer:
def rename(self, buffer_name):
weechat_buffer = w.info_get("irc_buffer", "%s,%s" % (server, buffer_name))
if self.renamed.count(buffer_name) == 0:
- new_buffer_name = self.FORMAT % (buffer_name)
+ new_buffer_name = self.FORMAT % (buffer_name[:-3])
self.renamed.append(buffer_name)
w.buffer_set(weechat_buffer, "short_name", new_buffer_name)
def unrename(self, buffer_name):
@@ -371,7 +371,7 @@ def slack_never_away_cb(data, remaining):
global never_away
if never_away == True:
#w.prnt("", 'updating status as back')
- name = reverse_channel_hash["general"]
+ name = reverse_channel_hash["#general"]
request = {"type":"typing","channel":name}
ws.send(json.dumps(request))
#command_back(None)