diff options
author | Tollef Fog Heen <tfheen@err.no> | 2016-03-05 12:45:01 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2016-03-05 12:45:01 +0100 |
commit | 6b53c203c50d44add1e33facb4159a4e6d573b2e (patch) | |
tree | 924d121fc3c84793e8b6b87994bbd7bebe1ad053 | |
parent | 67d675338883ca4d5161c624a18ad564d591b05d (diff) | |
download | wee-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.
-rw-r--r-- | wee_slack.py | 2 |
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) |