mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 21:36:21 +00:00
Merge branch 'master' into openpgp
This commit is contained in:
@@ -3991,23 +3991,21 @@ cmd_history(gchar **args, struct cmd_help_t help)
|
|||||||
gboolean
|
gboolean
|
||||||
cmd_carbons(gchar **args, struct cmd_help_t help)
|
cmd_carbons(gchar **args, struct cmd_help_t help)
|
||||||
{
|
{
|
||||||
jabber_conn_status_t conn_status = jabber_get_connection_status();
|
|
||||||
|
|
||||||
if (conn_status != JABBER_CONNECTED) {
|
|
||||||
cons_show("You are not currently connected.");
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean result = _cmd_set_boolean_preference(args[0], help,
|
gboolean result = _cmd_set_boolean_preference(args[0], help,
|
||||||
"Message carbons preference", PREF_CARBONS);
|
"Message carbons preference", PREF_CARBONS);
|
||||||
|
|
||||||
// enable carbons
|
jabber_conn_status_t conn_status = jabber_get_connection_status();
|
||||||
if (strcmp(args[0], "on") == 0) {
|
|
||||||
iq_enable_carbons();
|
if (conn_status == JABBER_CONNECTED) {
|
||||||
}
|
// enable carbons
|
||||||
else if (strcmp(args[0], "off") == 0){
|
if (strcmp(args[0], "on") == 0) {
|
||||||
iq_disable_carbons();
|
iq_enable_carbons();
|
||||||
|
}
|
||||||
|
else if (strcmp(args[0], "off") == 0){
|
||||||
|
iq_disable_carbons();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4477,4 +4475,4 @@ gint _compare_commands(Command *a, Command *b)
|
|||||||
g_free(key_b);
|
g_free(key_b);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user