Closed farhad2161 closed 3 years ago
How can I prevent room creation by using a hook? The below code doesn't work.
-export([check_create_room/4]). start(Host, _Opts) -> ejabberd_hooks:add(check_create_room, Host, ?MODULE, check_create_room, 50), ok. stop(Host) -> ejabberd_hooks:delete(check_create_room, Host, ?MODULE, check_create_room, 50), ok. check_create_room(ServerHost, Host, Room, From) -> false.
How can I prevent room creation by using a hook? The below code doesn't work.