Skip to content

Commit

Permalink
优化脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
memacs committed Feb 14, 2019
1 parent b9384cc commit 1484492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 233 deletions.
8 changes: 4 additions & 4 deletions ejabberd.yml.qunar
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ redis_tab: "0,1,2,3,5,7,10,11,15"
##
modules:
mod_adhoc: {}
mod_client_state: {}
## mod_client_state: {}
mod_configure: {} # requires mod_adhoc
mod_http_bind: {}
mod_muc:
Expand All @@ -625,9 +625,9 @@ modules:
persistent: true
public: false
public_list: false
mod_offline:
access_max_user_messages: max_user_offline_messages
db_type: sql
## mod_offline:
## access_max_user_messages: max_user_offline_messages
## db_type: sql
mod_ping: {}
mod_extend_iq: {}
mod_http_service: {}
Expand Down
6 changes: 0 additions & 6 deletions src/ejabberd_sm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
get_user_session/2,
add_datetime_to_packet/3,
add_msectime_to_packet/4,
do_make_verify_friend_packet1/4,
delete_presence_spool/3,
online/1,
get_sm_backend/1,
Expand Down Expand Up @@ -1054,11 +1053,6 @@ do_make_verify_friend_packet(XMLNS,Rslt,Reason,Two_ways) ->
attrs = [{<<"xmlns">>,XMLNS},{<<"type">>,<<"handle_friend_result">>},{<<"result">>,Rslt},{<<"reason">>,Reason}],
children = []},Two_ways}.

do_make_verify_friend_packet1(XMLNS, _Rslt, Reason, Two_ways) ->
{#xmlel{name = <<"presence">>,
attrs = [{<<"xmlns">>,XMLNS},{<<"body">>,Reason}],
children = []},Two_ways}.

send_presence_packet(From,To,Packet) ->
PResources = get_user_present_resources(To#jid.luser, To#jid.lserver),
lists:foreach(fun ({_, R}) ->
Expand Down
223 changes: 0 additions & 223 deletions src/mod_configure2.erl

This file was deleted.

0 comments on commit 1484492

Please sign in to comment.