mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
* src/mod_muc/mod_muc_room.erl: MUC kicks a participant if sends a
private message with type=error (EJAB-496) SVN Revision: 1142
This commit is contained in:
parent
bceea5fc73
commit
5868a9d1a5
|
@ -1,3 +1,8 @@
|
||||||
|
2008-01-09 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/mod_muc/mod_muc_room.erl: MUC kicks a participant if sends a
|
||||||
|
private message with type=error (EJAB-496)
|
||||||
|
|
||||||
2008-01-08 Badlop <badlop@process-one.net>
|
2008-01-08 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/ejabberdctl.template: Removed the option ERL_FULLSWEEP_AFTER
|
* src/ejabberdctl.template: Removed the option ERL_FULLSWEEP_AFTER
|
||||||
|
|
|
@ -469,23 +469,6 @@ normal_state({route, From, ToNick,
|
||||||
StateData) ->
|
StateData) ->
|
||||||
Type = xml:get_attr_s("type", Attrs),
|
Type = xml:get_attr_s("type", Attrs),
|
||||||
Lang = xml:get_attr_s("xml:lang", Attrs),
|
Lang = xml:get_attr_s("xml:lang", Attrs),
|
||||||
case Type of
|
|
||||||
"error" ->
|
|
||||||
case is_user_online(From, StateData) of
|
|
||||||
true ->
|
|
||||||
NewState =
|
|
||||||
add_user_presence_un(
|
|
||||||
From,
|
|
||||||
{xmlelement, "presence",
|
|
||||||
[{"type", "unavailable"}], []},
|
|
||||||
StateData),
|
|
||||||
send_new_presence(From, NewState),
|
|
||||||
{next_state, normal_state,
|
|
||||||
remove_online_user(From, NewState)};
|
|
||||||
_ ->
|
|
||||||
{next_state, normal_state, StateData}
|
|
||||||
end;
|
|
||||||
_ ->
|
|
||||||
case (StateData#state.config)#config.allow_private_messages
|
case (StateData#state.config)#config.allow_private_messages
|
||||||
andalso is_user_online(From, StateData) of
|
andalso is_user_online(From, StateData) of
|
||||||
true ->
|
true ->
|
||||||
|
@ -532,8 +515,7 @@ normal_state({route, From, ToNick,
|
||||||
ToNick),
|
ToNick),
|
||||||
From, Err)
|
From, Err)
|
||||||
end,
|
end,
|
||||||
{next_state, normal_state, StateData}
|
{next_state, normal_state, StateData};
|
||||||
end;
|
|
||||||
|
|
||||||
normal_state({route, From, ToNick,
|
normal_state({route, From, ToNick,
|
||||||
{xmlelement, "iq", Attrs, _Els} = Packet},
|
{xmlelement, "iq", Attrs, _Els} = Packet},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user