From 623426e39f067d1c256ca3115bb33a8ba4af5581 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 30 Jan 2022 16:51:22 +0100 Subject: Remove empty hook_process_hashtable calls I don't think these are necessary. I've not experienced any errors after removing them. --- wee_slack.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index eff957d..1fd4af1 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -926,8 +926,6 @@ def local_process_async_slack_api_request(request, event_router): params = {"useragent": "wee_slack {}".format(SCRIPT_VERSION)} request.tried() context = event_router.store_context(request) - # TODO: let flashcode know about this bug - i have to 'clear' the hashtable or retry requests fail - w.hook_process_hashtable("url:", params, config.slack_timeout, "", context) w.hook_process_hashtable( weechat_request, params, @@ -5180,7 +5178,6 @@ def command_register(data, current_buffer, args): "client_id={}&client_secret={}&redirect_uri={}&code={}" ).format(CLIENT_ID, CLIENT_SECRET, redirect_uri, code) params = {"useragent": "wee_slack {}".format(SCRIPT_VERSION)} - w.hook_process_hashtable("url:", params, config.slack_timeout, "", "") w.hook_process_hashtable( "url:{}".format(uri), params, config.slack_timeout, "register_callback", "" ) -- cgit