Add preference/commands for carbons message

This commit is contained in:
Olivier LE MOAL
2015-02-03 15:27:56 +01:00
parent e3feacddd6
commit 2a12a4d93b
12 changed files with 85 additions and 6 deletions

View File

@@ -3882,6 +3882,22 @@ cmd_history(gchar **args, struct cmd_help_t help)
return result;
}
gboolean
cmd_carbons(gchar **args, struct cmd_help_t help)
{
gboolean result = _cmd_set_boolean_preference(args[0], help,
"Carbons message", PREF_CARBONS);
// enable carbons
if (strcmp(args[0], "on") == 0) {
iq_enable_carbons();
}
else if (strcmp(args[0], "off") == 0){
iq_disable_carbons();
}
return result;
}
gboolean
cmd_away(gchar **args, struct cmd_help_t help)
{