mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Deprecate jlib.erl in favor of aux.erl
Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
This commit is contained in:
parent
997ac58329
commit
7bcbea2108
55 changed files with 422 additions and 205 deletions
|
@ -67,7 +67,7 @@ groups_with_opts(Host) ->
|
|||
end.
|
||||
|
||||
create_group(Host, Group, Opts) ->
|
||||
SOpts = jlib:term_to_expr(Opts),
|
||||
SOpts = aux:term_to_expr(Opts),
|
||||
F = fun () ->
|
||||
?SQL_UPSERT_T(
|
||||
"sr_group",
|
||||
|
@ -98,7 +98,7 @@ get_group_opts(Host, Group) ->
|
|||
end.
|
||||
|
||||
set_group_opts(Host, Group, Opts) ->
|
||||
SOpts = jlib:term_to_expr(Opts),
|
||||
SOpts = aux:term_to_expr(Opts),
|
||||
F = fun () ->
|
||||
?SQL_UPSERT_T(
|
||||
"sr_group",
|
||||
|
@ -172,7 +172,7 @@ export(_Server) ->
|
|||
[{sr_group,
|
||||
fun(Host, #sr_group{group_host = {Group, LServer}, opts = Opts})
|
||||
when LServer == Host ->
|
||||
SOpts = jlib:term_to_expr(Opts),
|
||||
SOpts = aux:term_to_expr(Opts),
|
||||
[?SQL("delete from sr_group where name=%(Group)s;"),
|
||||
?SQL("insert into sr_group(name, opts) values ("
|
||||
"%(Group)s, %(SOpts)s);")];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue