1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Allow sending stanzas in xml console

This commit is contained in:
James Booth 2016-03-26 17:11:19 +00:00
parent 7b34f72007
commit 18555ffcb4

View File

@ -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;
}