mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Allow sending stanzas in xml console
This commit is contained in:
parent
7b34f72007
commit
18555ffcb4
@ -102,7 +102,7 @@ cmd_execute_default(ProfWin *window, const char *inp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handle non commands in non chat or plugin windows
|
// 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);
|
cons_show("Unknown command: %s", inp);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -142,6 +142,11 @@ cmd_execute_default(ProfWin *window, const char *inp)
|
|||||||
cl_ev_send_muc_msg(mucwin, inp);
|
cl_ev_send_muc_msg(mucwin, inp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case WIN_XML:
|
||||||
|
{
|
||||||
|
jabber_send_stanza(inp);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user