Added command to show libotr version

This commit is contained in:
James Booth
2014-02-11 23:19:09 +00:00
parent 42630139c2
commit 25131e3f36
5 changed files with 22 additions and 3 deletions

View File

@@ -2593,6 +2593,10 @@ cmd_otr(gchar **args, struct cmd_help_t help)
// update the current window
ui_switch_win(wins_get_current_num());
return result;
} else if (strcmp(args[0], "libver") == 0) {
char *version = otr_libotr_version();
cons_show("Using libotr version %s", version);
return TRUE;
}
if (jabber_get_connection_status() != JABBER_CONNECTED) {