diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-04-21 09:04:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 09:04:16 -0700 |
commit | 805a9873faec52af1a2bacb6a32be4326e47270a (patch) | |
tree | f682d3d211a0cf5a5cabe0013403d96102527d4e /wee_slack.py | |
parent | bdae484b57f03a43a095b7423faf88a7824a7c4a (diff) | |
parent | 1bd461188c8fe70a20614653c637078dabb9a1c7 (diff) | |
download | wee-slack-805a9873faec52af1a2bacb6a32be4326e47270a.tar.gz |
Merge pull request #351 from wee-slack/settings_cleanup
Clean up a little bit
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/wee_slack.py b/wee_slack.py index e5aaa9a..7ba1995 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -35,8 +35,6 @@ SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com" BACKLOG_SIZE = 200 SCROLLBACK_SIZE = 500 -CACHE_VERSION = "4" - RECORD_DIR = "/tmp/weeslack-debug" SLACK_API_TRANSLATOR = { @@ -3184,7 +3182,6 @@ def setup_hooks(): w.hook_completion("emoji", "complete :emoji: for slack", "emoji_completion_cb", "") # Hooks to fix/implement - # w.hook_timer(1000 * 60 * 5, 0, 0, "cache_write_cb", "") # w.hook_signal('buffer_opened', "buffer_opened_cb", "") # w.hook_signal('window_scrolled', "scrolled_cb", "") # w.hook_timer(3000, 0, 0, "slack_connection_persistence_cb", "") @@ -3222,7 +3219,6 @@ class PluginConfig(object): # extracted. # TODO: setting descriptions. settings = { - 'colorize_messages': 'false', 'colorize_private_chats': 'false', 'debug_mode': 'false', 'debug_level': '3', @@ -3233,7 +3229,6 @@ class PluginConfig(object): 'switch_buffer_on_join': 'true', 'trigger_value': 'false', 'unfurl_ignore_alt_text': 'false', - 'cache_messages': 'true', 'record_events': 'false', 'thread_suffix_color': 'lightcyan', 'unhide_buffers_with_activity': 'false', @@ -3364,7 +3359,6 @@ if __name__ == "__main__": # setup_trace() # WEECHAT_HOME = w.info_get("weechat_dir", "") - # CACHE_NAME = "slack.cache" # STOP_TALKING_TO_SLACK = False # Global var section @@ -3382,10 +3376,6 @@ if __name__ == "__main__": # hotlist = w.infolist_get("hotlist", "", "") # main_weechat_buffer = w.info_get("irc_buffer", "{}.{}".format(domain, "DOESNOTEXIST!@#$")) - # message_cache = collections.defaultdict(list) - # if config.cache_messages: - # cache_load() - w.hook_config("plugins.var.python." + SCRIPT_NAME + ".*", "config_changed_cb", "") load_emoji() |