about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-03-26 17:11:19 +0000
committerJames Booth <boothj5@gmail.com>2016-03-26 17:11:19 +0000
commit18555ffcb431adab1f0968ed49d5cc66b9847205 (patch)
tree2c8f9a5f8dc20dee03240af6e5defeba87ee3d2f
parent7b34f72007b6172de63d4b7b8ac49c01c7404c8f (diff)
downloadprofani-tty-18555ffcb431adab1f0968ed49d5cc66b9847205.tar.gz
Allow sending stanzas in xml console
-rw-r--r--src/command/commands.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 093bc43d..fe93b069 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -102,7 +102,7 @@ cmd_execute_default(ProfWin *window, const char *inp)
     }
 
     // handle non commands in non chat or plugin windows
-    if (window->type != WIN_CHAT && window->type != WIN_MUC && window->type != WIN_PRIVATE && window->type != WIN_PLUGIN) {
+    if (window->type != WIN_CHAT && window->type != WIN_MUC && window->type != WIN_PRIVATE && window->type != WIN_PLUGIN && window->type != WIN_XML) {
         cons_show("Unknown command: %s", inp);
         return TRUE;
     }
@@ -142,6 +142,11 @@ cmd_execute_default(ProfWin *window, const char *inp)
         cl_ev_send_muc_msg(mucwin, inp);
         break;
     }
+    case WIN_XML:
+    {
+        jabber_send_stanza(inp);
+        break;
+    }
     default:
         break;
     }