aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index e8084fb..146a644 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1024,7 +1024,6 @@ class SlackTeam(object):
w.buffer_set(self.channel_buffer, "localvar_set_server", self.preferred_name)
if w.config_string(w.config_get('irc.look.server_buffer')) == 'merge_with_core':
w.buffer_merge(self.channel_buffer, w.buffer_search_main())
- w.buffer_set(self.channel_buffer, "nicklist", "1")
def set_muted_channels(self, muted_str):
self.muted_channels = {x for x in muted_str.split(',')}
@@ -2992,6 +2991,8 @@ def command_talk(data, current_buffer, args):
c = team.get_channel_map()
if channel_name not in c:
u = team.get_username_map()
+ if channel_name.startswith('@'):
+ channel_name = channel_name[1:]
if channel_name in u:
s = SlackRequest(team.token, "im.open", {"user": u[channel_name]}, team_hash=team.team_hash)
EVENTROUTER.receive(s)