diff options
author | James Booth <boothj5@gmail.com> | 2014-02-11 23:19:09 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-11 23:19:09 +0000 |
commit | 25131e3f36451e08f40ccd4c5598a197477b754d (patch) | |
tree | b51ef09c84f10532567268f92d5a7c99a4158b93 /src/command/commands.c | |
parent | 42630139c2db02f430ef06f172201e8bc898dad4 (diff) | |
download | profani-tty-25131e3f36451e08f40ccd4c5598a197477b754d.tar.gz |
Added command to show libotr version
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 368a644b..d0dda7ec 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -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) { |