mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 20:16:22 +00:00
Added help for /alias command
This commit is contained in:
@@ -552,6 +552,13 @@ static struct cmd_t command_defs[] =
|
|||||||
{ "/alias add|remove|list [name value]",
|
{ "/alias add|remove|list [name value]",
|
||||||
"-----------------------------------",
|
"-----------------------------------",
|
||||||
"Add, remove or show command aliases.",
|
"Add, remove or show command aliases.",
|
||||||
|
"The alias will be available as a command",
|
||||||
|
"Example : /alias add friends /who online friends",
|
||||||
|
"Example : /alias add q /quit",
|
||||||
|
"Example : /alias a /away \"I'm in a meeting.\"",
|
||||||
|
"Example : /alias remove q",
|
||||||
|
"Example : /alias list",
|
||||||
|
"The above aliases will be available as /friends and /a",
|
||||||
NULL } } },
|
NULL } } },
|
||||||
|
|
||||||
{ "/chlog",
|
{ "/chlog",
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ void create_config_file(void **state)
|
|||||||
}
|
}
|
||||||
g_string_free(profanity_dir, TRUE);
|
g_string_free(profanity_dir, TRUE);
|
||||||
|
|
||||||
fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
|
FILE *f = fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
|
||||||
|
if (f) {
|
||||||
g_free(xdg_config);
|
g_free(xdg_config);
|
||||||
|
prefs_load();
|
||||||
prefs_load();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void delete_config_file(void **state)
|
void delete_config_file(void **state)
|
||||||
|
|||||||
Reference in New Issue
Block a user