diff --git a/src/xmppipe.c b/src/xmppipe.c index 333ad0e..1988bd4 100644 --- a/src/xmppipe.c +++ b/src/xmppipe.c @@ -250,7 +250,9 @@ int main(int argc, char **argv) { state->out = xmppipe_strdup(state->room); state->mucjid = xmppipe_mucjid(state->out, state->resource); } else if (!(state->opt & XMPPIPE_OPT_GROUPCHAT)) { - state->out = xmppipe_chatjid(state->room, state->server); + state->out = strchr(state->room, '.') + ? xmppipe_strdup(state->room) + : xmppipe_chatjid(state->room, state->server); } if (xmppipe_fmt_init() < 0)