Added /presence command to show contacts presence

This commit is contained in:
James Booth
2014-11-07 22:38:34 +00:00
parent 571db23150
commit 373b3a2d7c
12 changed files with 189 additions and 48 deletions

View File

@@ -620,7 +620,7 @@ cmd_help(gchar **args, struct cmd_help_t help)
"/chlog", "/flash", "/gone", "/grlog", "/history", "/intype",
"/log", "/mouse", "/notify", "/outtype", "/prefs", "/priority",
"/reconnect", "/roster", "/splash", "/states", "/statuses", "/theme",
"/titlebar", "/vercheck", "/privileges", "/occupants" };
"/titlebar", "/vercheck", "/privileges", "/occupants", "/presence" };
_cmd_show_filtered_help("Settings commands", filter, ARRAY_SIZE(filter));
} else if (strcmp(args[0], "navigation") == 0) {
@@ -2922,6 +2922,12 @@ cmd_beep(gchar **args, struct cmd_help_t help)
return _cmd_set_boolean_preference(args[0], help, "Sound", PREF_BEEP);
}
gboolean
cmd_presence(gchar **args, struct cmd_help_t help)
{
return _cmd_set_boolean_preference(args[0], help, "Contact presence", PREF_PRESENCE);
}
gboolean
cmd_states(gchar **args, struct cmd_help_t help)
{