mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-04 09:16:21 +00:00
Show message when offline for /pgp fps
This commit is contained in:
@@ -4100,6 +4100,10 @@ cmd_pgp(gchar **args, struct cmd_help_t help)
|
||||
}
|
||||
g_slist_free_full(keys, (GDestroyNotify)p_gpg_free_key);
|
||||
} else if (g_strcmp0(args[0], "fps") == 0) {
|
||||
jabber_conn_status_t conn_status = jabber_get_connection_status();
|
||||
if (conn_status != JABBER_CONNECTED) {
|
||||
cons_show("You are not currently connected.");
|
||||
} else {
|
||||
GHashTable *fingerprints = p_gpg_fingerprints();
|
||||
GList *jids = g_hash_table_get_keys(fingerprints);
|
||||
if (jids) {
|
||||
@@ -4115,6 +4119,7 @@ cmd_pgp(gchar **args, struct cmd_help_t help)
|
||||
cons_show("No PGP fingerprints received.");
|
||||
}
|
||||
g_list_free(jids);
|
||||
}
|
||||
} else if (g_strcmp0(args[0], "libver") == 0) {
|
||||
const char *libver = p_gpg_libver();
|
||||
if (libver) {
|
||||
|
||||
Reference in New Issue
Block a user