aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 33a5ca5..9262e7f 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -780,13 +780,12 @@ def slack_never_away_cb(data, remaining_calls):
@utf8_decode
-def typing_bar_item_cb(data, current_buffer, args):
+def typing_bar_item_cb(data, item, current_window, current_buffer, extra_info):
"""
Privides a bar item indicating who is typing in the current channel AND
why is typing a DM to you globally.
"""
typers = []
- current_buffer = w.current_buffer()
current_channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer, None)
# first look for people typing in this channel
@@ -3553,7 +3552,7 @@ def load_emoji():
def setup_hooks():
cmds = {k[8:]: v for k, v in globals().items() if k.startswith("command_")}
- w.bar_item_new('slack_typing_notice', 'typing_bar_item_cb', '')
+ w.bar_item_new('slack_typing_notice', '(extra)typing_bar_item_cb', '')
w.hook_timer(1000, 0, 0, "typing_update_cb", "")
w.hook_timer(1000, 0, 0, "buffer_list_update_callback", "EVENTROUTER")