Use correct table field name in sql query

This commit is contained in:
Paweł Chmielowski 2017-11-03 12:17:34 +01:00
parent 2060022b19
commit 90e1f3f29d
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ restore_room(LServer, Host, Name) ->
OptsD = ejabberd_sql:decode_term(Opts),
case catch ejabberd_sql:sql_query(
LServer,
?SQL("select @(jid)s, @(nick)s, @(nodes)s from muc_room_subscribers where name=%(Name)s"
?SQL("select @(jid)s, @(nick)s, @(nodes)s from muc_room_subscribers where room=%(Name)s"
" and host=%(Host)s")) of
{selected, []} ->
OptsR = mod_muc:opts_to_binary(OptsD),