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:
parent
485aae8134
commit
603ec9cb19
23 changed files with 44 additions and 48 deletions
|
@ -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, "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue