aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-11-21 17:28:57 +0100
committerGitHub <noreply@github.com>2017-11-21 17:28:57 +0100
commitccb6f81dc4cd65a5e65d7231d4e76e1682f194cf (patch)
treedafff7b62a7b1df22c8e94f149a9fa9f8b176e38
parent1114e63ecec429ba89f998b2c8be0be531f4f5f4 (diff)
parent11d4fc4961fd625f734930742aabc81c514d1acc (diff)
downloadwee-slack-ccb6f81dc4cd65a5e65d7231d4e76e1682f194cf.tar.gz
Merge pull request #471 from com4/master
Add option to disable sending typing notification to Slack
-rw-r--r--wee_slack.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 146a644..47f0b80 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3333,7 +3333,8 @@ def setup_hooks():
w.hook_signal('buffer_switch', "buffer_switch_callback", "EVENTROUTER")
w.hook_signal('window_switch', "buffer_switch_callback", "EVENTROUTER")
w.hook_signal('quit', "quit_notification_cb", "")
- w.hook_signal('input_text_changed', "typing_notification_cb", "")
+ if config.send_typing_notice:
+ w.hook_signal('input_text_changed', "typing_notification_cb", "")
w.hook_command(
# Command name and description
@@ -3456,6 +3457,10 @@ class PluginConfig(object):
default='italic',
desc='When receiving bold text from Slack, render it as this in weechat.'
' If your terminal lacks italic support, consider using "underline" instead.'),
+ 'send_typing_notice': Setting(
+ default='true',
+ desc='Alert Slack users when you are typing a message in the input bar '
+ '(Requires reload)'),
'server_aliases': Setting(
default='',
desc='A comma separated list of `subdomain:alias` pairs. The alias'