diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-05 08:41:08 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-05 08:41:08 +0300 |
commit | 4ff8d7918a0557414f8bf7b1aa1c0f875fb76216 (patch) | |
tree | d19559f26b4c2ad396112ae9766a4c9da1757e55 /src/mod_blocking.erl | |
parent | Delete mod_configure2 (diff) |
Change code to reflect recent changes in fxml_gen
Diffstat (limited to 'src/mod_blocking.erl')
-rw-r--r-- | src/mod_blocking.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mod_blocking.erl b/src/mod_blocking.erl index 743b78efd..bc3080871 100644 --- a/src/mod_blocking.erl +++ b/src/mod_blocking.erl @@ -135,7 +135,7 @@ list_to_blocklist_jids([_ | Items], JIDs) -> list_to_blocklist_jids(Items, JIDs). -spec process_blocklist_block(binary(), binary(), [ljid()], - undefined | binary()) -> + binary()) -> {error, error()} | {result, undefined, userlist()}. process_blocklist_block(LUser, LServer, JIDs, Lang) -> @@ -170,7 +170,7 @@ process_blocklist_block(LUser, LServer, JIDs, Lang) -> {error, xmpp:err_internal_server_error(<<"Database failure">>, Lang)} end. --spec process_blocklist_unblock_all(binary(), binary(), undefined | binary()) -> +-spec process_blocklist_unblock_all(binary(), binary(), binary()) -> {error, error()} | {result, undefined} | {result, undefined, userlist()}. @@ -194,8 +194,7 @@ process_blocklist_unblock_all(LUser, LServer, Lang) -> {error, xmpp:err_internal_server_error(<<"Database failure">>, Lang)} end. --spec process_blocklist_unblock(binary(), binary(), [ljid()], - undefined | binary()) -> +-spec process_blocklist_unblock(binary(), binary(), [ljid()], binary()) -> {error, error()} | {result, undefined} | {result, undefined, userlist()}. @@ -243,7 +242,7 @@ broadcast_blocklist_event(LUser, LServer, Event) -> ejabberd_sm:route(JID, JID, {broadcast, {blocking, Event}}). --spec process_blocklist_get(binary(), binary(), undefined | binary()) -> +-spec process_blocklist_get(binary(), binary(), binary()) -> {error, error()} | {result, block_list()}. process_blocklist_get(LUser, LServer, Lang) -> Mod = db_mod(LServer), |