aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2016-03-05 12:45:01 +0100
committerTollef Fog Heen <tfheen@err.no>2016-03-05 12:45:01 +0100
commit6b53c203c50d44add1e33facb4159a4e6d573b2e (patch)
tree924d121fc3c84793e8b6b87994bbd7bebe1ad053 /wee_slack.py
parent67d675338883ca4d5161c624a18ad564d591b05d (diff)
downloadwee-slack-6b53c203c50d44add1e33facb4159a4e6d573b2e.tar.gz
Avoid duplicated text on /slack talk user
Before, we would reopen the buffer, even if one existed. We should just reuse the existing one.
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 790589e..dbbb404 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1020,7 +1020,7 @@ def command_talk(current_buffer, args):
server = servers.find(current_domain_name())
if server:
channel = server.channels.find(args)
- if channel:
+ if not channel:
channel.open()
else:
user = server.users.find(args)