Skip to content

Commit

Permalink
Code review follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlooss1 committed Oct 26, 2022
1 parent 8136043 commit cdc567b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod_ping.erl
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ handle_remote_hook(HandlerState, _, _) ->

-spec user_online(Acc, Params, Extra) -> {ok, Acc} when
Acc :: ok,
Params :: #{sid := 'undefined' | ejabberd_sm:sid()},
Params :: #{sid := ejabberd_sm:sid()},
Extra :: map().
user_online(Acc, #{sid := {_, Pid}}, _) ->
ejabberd_c2s:run_remote_hook(Pid, mod_ping, init),
{ok, Acc}.

-spec user_offline(Acc, Params, Extra) -> {ok, Acc} when
Acc :: mongoose_acc:t(),
Params :: #{sid := 'undefined' | ejabberd_sm:sid()},
Params :: #{sid := ejabberd_sm:sid()},
Extra :: map().
user_offline(Acc, #{sid := {_, Pid}}, _) ->
ejabberd_c2s:run_remote_hook(Pid, mod_ping, remove_timer),
Expand Down

0 comments on commit cdc567b

Please sign in to comment.