Add more dummy weechat module functions.
This commit is contained in:
parent
34bf4ad65e
commit
3eef4a2f8b
1 changed files with 35 additions and 0 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue