From 3eef4a2f8b91793e044e2d1da8e5fb39998aaba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Sun, 18 Mar 2018 15:37:41 +0100 Subject: [PATCH] Add more dummy weechat module functions. --- matrix/_weechat.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/matrix/_weechat.py b/matrix/_weechat.py index d207ce7..f4677f2 100644 --- a/matrix/_weechat.py +++ b/matrix/_weechat.py @@ -91,3 +91,38 @@ def color(color_name): escape_string = "\033[{}{}m".format(reset_code, ";".join(escape_codes)) return escape_string + + +def prefix(prefix): + prefix_to_symbol = { + "error": "=!=", + "network": "--", + "action": "*", + "join": "-->", + "quit": "<--" + } + + if prefix in prefix_to_symbol: + return prefix_to_symbol[prefix] + + return "" + + +def prnt(_, string): + print(string) + + +def config_search_section(*args, **kwargs): + pass + + +def config_new_option(*args, **kwargs): + pass + + +def mkdir_home(*args, **kwargs): + return True + + +def info_get(info, *args): + return ""