25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Don't use deprecated gen_mod:db_type

This commit is contained in:
Paweł Chmielowski 2019-03-29 18:41:51 +01:00
parent 24b9b69783
commit 9b040f65a3

View File

@ -188,8 +188,8 @@ select(LServer, JidRequestor, #jid{luser = LUser} = JidArchive,
{error, db_failure}.
select_with_mucsub(LServer, JidRequestor, #jid{luser = LUser} = JidArchive,
MAMQuery, RSM) ->
Extra = case gen_mod:db_type(LServer, mod_muc) of
sql ->
Extra = case gen_mod:db_mod(LServer, mod_muc) of
mod_muc_sql ->
subscribers_table;
_ ->
SubRooms = case mod_muc_admin:find_hosts(LServer) of