aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorMatt Robenolt <matt@ydekproductions.com>2017-01-19 21:01:31 -0800
committerMatt Robenolt <matt@ydekproductions.com>2017-01-19 21:04:41 -0800
commit124f98c7594ea38ee2ae6b4b78ba6a26f222baf8 (patch)
tree1ab39f5c69b76fa8a9fd5e0427eb9c2d4812cabe /wee_slack.py
parent0ee16cdf6db38d29c94b5d9b65f595c8689e9242 (diff)
downloadwee-slack-124f98c7594ea38ee2ae6b4b78ba6a26f222baf8.tar.gz
typing: don't trigger typing indicator from weechat commands
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 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: