Rename remove_room hook back

This commit is contained in:
Evgeniy Khramtsov 2017-08-10 14:49:05 +03:00
parent 7d626b4f5c
commit a96d72330d
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ restore_room(ServerHost, Host, Name) ->
forget_room(ServerHost, Host, Name) ->
LServer = jid:nameprep(ServerHost),
ejabberd_hooks:run(destroy_room, LServer, [LServer, Name, Host]),
ejabberd_hooks:run(remove_room, LServer, [LServer, Name, Host]),
Mod = gen_mod:db_mod(LServer, ?MODULE),
Mod:forget_room(LServer, Host, Name).