diff options
| author | Badlop <badlop@process-one.net> | 2009-10-21 12:58:55 +0000 |
|---|---|---|
| committer | Badlop <badlop@process-one.net> | 2009-10-21 12:58:55 +0000 |
| commit | c889491e2f08df521ab8d25940b776b3c8e7ac0d (patch) | |
| tree | 17ce443dce2b45ee54b431b396c1108bdf60cc1e /src/gen_mod.erl | |
| parent | Mention the change in nodename slash separation in release notes. (diff) | |
| parent | update pubsub patch (diff) | |
The road-to-exmpp branch now becomes trunk.
SVN Revision: 2693
Diffstat (limited to 'src/gen_mod.erl')
| -rw-r--r-- | src/gen_mod.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl index a37ec51e6..df1ccf0ea 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -173,11 +173,11 @@ get_module_opt(Host, Module, Opt, Default) -> get_module_opt_host(Host, Module, Default) -> Val = get_module_opt(Host, Module, host, Default), - element(2, regexp:gsub(Val, "@HOST@", Host)). + re:replace(Val, "@HOST@", Host, [global,{return,list}]). get_opt_host(Host, Opts, Default) -> Val = get_opt(host, Opts, Default), - element(2, regexp:gsub(Val, "@HOST@", Host)). + re:replace(Val, "@HOST@", Host, [global,{return,list}]). loaded_modules(Host) -> ets:select(ejabberd_modules, |
