]> granicus.if.org Git - ejabberd/commitdiff
pep_mapping not working due to Node type mismatch (EJAB-1135)
authorBadlop <badlop@process-one.net>
Mon, 21 Dec 2009 15:13:44 +0000 (15:13 +0000)
committerBadlop <badlop@process-one.net>
Mon, 21 Dec 2009 15:13:44 +0000 (15:13 +0000)
SVN Revision: 2815

src/mod_pubsub/mod_pubsub.erl
src/mod_pubsub/mod_pubsub_odbc.erl

index 1e9d72913f78c51e953e8f2d9309c0e753016dd5..827fe8c9e172d07e2ade74002aec13f138846449 100644 (file)
@@ -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;
     _ -> 
index bbc8e7b85da25aad236ebb6b4acdd09e77efc97b..d4a7e7d10b4c601a6f95ae7cb8b427c743111dc5 100644 (file)
@@ -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;
     _ ->