mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Remove some leftovers of XEP-0018.
Support for XEP-0018 was dropped long ago, but there are some leftovers. Remove them.
This commit is contained in:
parent
e2763b7d11
commit
5c40d38b69
@ -227,7 +227,7 @@ c2s_presence_in(C2SState, {From, To, #xmlel{attrs = Attrs, children = Els}}) ->
|
|||||||
Subscription = ejabberd_c2s:get_subscription(From, C2SState),
|
Subscription = ejabberd_c2s:get_subscription(From, C2SState),
|
||||||
Insert = ((Type == <<>>) or (Type == <<"available">>))
|
Insert = ((Type == <<>>) or (Type == <<"available">>))
|
||||||
and ((Subscription == both) or (Subscription == to)),
|
and ((Subscription == both) or (Subscription == to)),
|
||||||
Delete = (Type == <<"unavailable">>) or (Type == <<"error">>) or (Type == <<"invisible">>),
|
Delete = (Type == <<"unavailable">>) or (Type == <<"error">>),
|
||||||
if Insert or Delete ->
|
if Insert or Delete ->
|
||||||
LFrom = exmpp_jid:to_lower(From),
|
LFrom = exmpp_jid:to_lower(From),
|
||||||
Rs = case ejabberd_c2s:get_aux_field(caps_resources, C2SState) of
|
Rs = case ejabberd_c2s:get_aux_field(caps_resources, C2SState) of
|
||||||
|
@ -73,7 +73,6 @@ start(HostB, Opts) ->
|
|||||||
catch ets:new(disco_features, [named_table, ordered_set, public]),
|
catch ets:new(disco_features, [named_table, ordered_set, public]),
|
||||||
register_feature(HostB, "iq"),
|
register_feature(HostB, "iq"),
|
||||||
register_feature(HostB, "presence"),
|
register_feature(HostB, "presence"),
|
||||||
register_feature(HostB, "presence-invisible"),
|
|
||||||
|
|
||||||
catch ets:new(disco_extra_domains, [named_table, ordered_set, public]),
|
catch ets:new(disco_extra_domains, [named_table, ordered_set, public]),
|
||||||
ExtraDomains = gen_mod:get_opt(extra_domains, Opts, []),
|
ExtraDomains = gen_mod:get_opt(extra_domains, Opts, []),
|
||||||
|
Loading…
Reference in New Issue
Block a user