mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
EJAB-624: fixes mod_muc_room:is_visitor/2 to use get_role not get_affiliation
SVN Revision: 1534
This commit is contained in:
parent
d08b1c62bb
commit
35ed848fe8
@ -1,3 +1,8 @@
|
|||||||
|
2008-08-24 Geoff Cant <gcant@process-one.net>
|
||||||
|
|
||||||
|
* src/mod_mud/mod_muc_room.erl: is_visitor/2 fix - use get_role
|
||||||
|
not get_affiliation
|
||||||
|
|
||||||
2008-08-22 Badlop <badlop@process-one.net>
|
2008-08-22 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_router.erl: Fix call to mnesia match_object
|
* src/ejabberd_router.erl: Fix call to mnesia match_object
|
||||||
|
@ -1265,15 +1265,7 @@ get_default_role(Affiliation, StateData) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
is_visitor(Jid, StateData) ->
|
is_visitor(Jid, StateData) ->
|
||||||
case get_affiliation(Jid, StateData) of
|
get_role(Jid, StateData) =:= visitor.
|
||||||
none ->
|
|
||||||
case get_default_role(none, StateData) of
|
|
||||||
visitor -> true;
|
|
||||||
_ -> false
|
|
||||||
end;
|
|
||||||
visitor -> true;
|
|
||||||
_ -> false
|
|
||||||
end.
|
|
||||||
|
|
||||||
get_max_users(StateData) ->
|
get_max_users(StateData) ->
|
||||||
MaxUsers = (StateData#state.config)#config.max_users,
|
MaxUsers = (StateData#state.config)#config.max_users,
|
||||||
|
Loading…
Reference in New Issue
Block a user