aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-12-21 15:13:44 +0000
committerBadlop <badlop@process-one.net>2009-12-21 15:13:44 +0000
commit675c24f5eb2432c9a0558fb5638d4290c9d09d4c (patch)
treef68394e24c7e442d0962e676990ef5ff555de171 /src
parentFix EDoc comment (diff)
pep_mapping not working due to Node type mismatch (EJAB-1135)
SVN Revision: 2815
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl2
-rw-r--r--src/mod_pubsub/mod_pubsub_odbc.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 1e9d72913..827fe8c9e 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -3560,7 +3560,7 @@ select_type(ServerHost, Host, Node, Type)->
SelectedType = case Host of
{_User, _Server, _Resource} ->
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
- [{pep_mapping, PM}] -> proplists:get_value(Node, PM, ?PEPNODE);
+ [{pep_mapping, PM}] -> proplists:get_value(node_to_string(Node), PM, ?PEPNODE);
_ -> ?PEPNODE
end;
_ ->
diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl
index bbc8e7b85..d4a7e7d10 100644
--- a/src/mod_pubsub/mod_pubsub_odbc.erl
+++ b/src/mod_pubsub/mod_pubsub_odbc.erl
@@ -3393,7 +3393,7 @@ select_type(ServerHost, Host, Node, Type)->
SelectedType = case Host of
{_User, _Server, _Resource} ->
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
- [{pep_mapping, PM}] -> proplists:get_value(Node, PM, ?PEPNODE);
+ [{pep_mapping, PM}] -> proplists:get_value(node_to_string(Node), PM, ?PEPNODE);
_ -> ?PEPNODE
end;
_ ->