diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-12 13:17:42 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-12 13:17:42 +0300 |
commit | 31faa4eb9ad881c7884cd24f5d374d8b20e4b6c5 (patch) | |
tree | 8e23cec0f14663cf1f8e5bdcedff0625914f6cca /src/ejabberd_sm.erl | |
parent | Improve some type specs (diff) |
Add more type specs
Diffstat (limited to 'src/ejabberd_sm.erl')
-rw-r--r-- | src/ejabberd_sm.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 3ff9f290..f6d0e765 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -159,9 +159,9 @@ close_session(SID, User, Server, Resource) -> ejabberd_hooks:run(sm_remove_connection_hook, JID#jid.lserver, [SID, JID, Info]). --spec check_in_subscription(any(), binary(), binary(), - any(), any(), any()) -> any(). - +-spec check_in_subscription(boolean(), binary(), binary(), jid(), + subscribe | subscribed | unsubscribe | unsubscribed, + binary()) -> boolean() | {stop, false}. check_in_subscription(Acc, User, Server, _JID, _Type, _Reason) -> case ejabberd_auth:is_user_exists(User, Server) of true -> Acc; |