mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Use the regexp frontend module (EJAB-921)
This commit is contained in:
parent
d30ad8ba28
commit
48308042b6
9 changed files with 51 additions and 58 deletions
|
@ -542,7 +542,7 @@ get_local_items({_, Host}, ["all users", [$@ | Diap]], _Server, _Lang) ->
|
|||
Users ->
|
||||
SUsers = lists:sort([{S, U} || {U, S} <- Users]),
|
||||
case catch begin
|
||||
{ok, [S1, S2]} = regexp:split(Diap, "-"),
|
||||
[S1, S2] = ejabberd_regexp:split(Diap, "-"),
|
||||
N1 = list_to_integer(S1),
|
||||
N2 = list_to_integer(S2),
|
||||
Sub = lists:sublist(SUsers, N1, N2 - N1 + 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue