1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Don't pass empty resource to jid:make()

This commit is contained in:
Evgeniy Khramtsov 2017-02-25 10:01:01 +03:00
parent 485aae8134
commit 603ec9cb19
23 changed files with 44 additions and 48 deletions

View file

@ -215,7 +215,7 @@ export(_Server) ->
nick = Nick}) ->
case str:suffix(Host, RoomHost) of
true ->
SJID = jid:to_string(jid:make(U, S, <<"">>)),
SJID = jid:to_string(jid:make(U, S)),
[?SQL("delete from muc_registered where"
" jid=%(SJID)s and host=%(RoomHost)s;"),
?SQL("insert into muc_registered(jid, host, "