diff options
author | Tollef Fog Heen <tfheen@err.no> | 2017-01-20 13:56:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 13:56:53 +0100 |
commit | 45288c699a776a9d143128f778e2099d23d2a841 (patch) | |
tree | 1ab39f5c69b76fa8a9fd5e0427eb9c2d4812cabe | |
parent | 0ee16cdf6db38d29c94b5d9b65f595c8689e9242 (diff) | |
parent | 124f98c7594ea38ee2ae6b4b78ba6a26f222baf8 (diff) | |
download | wee-slack-45288c699a776a9d143128f778e2099d23d2a841.tar.gz |
Merge pull request #297 from mattrobenolt/typing
typing: don't trigger typing indicator from weechat commands
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 51e86aa..ba3df8f 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2129,7 +2129,8 @@ def buffer_switch_cb(signal, sig_type, data): def typing_notification_cb(signal, sig_type, data): - if len(w.buffer_get_string(data, "input")) > 8: + msg = w.buffer_get_string(data, "input") + if len(msg) > 8 and msg[:1] != "/": global typing_timer now = time.time() if typing_timer + 4 < now: |