summaryrefslogtreecommitdiff
path: root/src/mod_pres_counter.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-08-12 13:17:42 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-08-12 13:17:42 +0300
commit31faa4eb9ad881c7884cd24f5d374d8b20e4b6c5 (patch)
tree8e23cec0f14663cf1f8e5bdcedff0625914f6cca /src/mod_pres_counter.erl
parentImprove some type specs (diff)
Add more type specs
Diffstat (limited to '')
-rw-r--r--src/mod_pres_counter.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_pres_counter.erl b/src/mod_pres_counter.erl
index 786ba97f..955e53f6 100644
--- a/src/mod_pres_counter.erl
+++ b/src/mod_pres_counter.erl
@@ -51,6 +51,8 @@ stop(Host) ->
depends(_Host, _Opts) ->
[].
+-spec check_packet(allow | deny, binary(), binary(), _,
+ {jid(), jid(), stanza()}, in | out) -> allow | deny.
check_packet(_, _User, Server, _PrivacyList,
{From, To, #presence{type = Type}}, Dir) ->
IsSubscription = case Type of