From 08fc6df8538f2a2f469f430462452dd924bfff46 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 17 Jun 2013 16:30:20 +0200 Subject: [PATCH] fix auto-create issue due to bad binary matching --- src/mod_pubsub.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index ffe11ce19..d401382e9 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -3036,7 +3036,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, Access) -> %% for automatic node creation. we'll take the default node type: %% first listed into the plugins configuration option, or pep Type = select_type(ServerHost, Host, Node), - case lists:member("auto-create", features(Type)) of + case lists:member(<<"auto-create">>, features(Type)) of true -> case create_node(Host, ServerHost, Node, Publisher, Type, Access, []) of {result, [#xmlel{name = <<"pubsub">>,