Added cmd_otr tests

This commit is contained in:
James Booth
2014-02-16 00:04:53 +00:00
parent f010dfb004
commit 6295336284
5 changed files with 67 additions and 0 deletions

View File

@@ -2566,6 +2566,11 @@ gboolean
cmd_otr(gchar **args, struct cmd_help_t help)
{
#ifdef HAVE_LIBOTR
if (args[0] == NULL) {
cons_show("Usage: %s", help.usage);
return TRUE;
}
if (strcmp(args[0], "log") == 0) {
char *choice = args[1];
if (g_strcmp0(choice, "on") == 0) {