25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

* src/mod_pubsub/mod_pubsub.erl: Bugfix: don't report the Jabber

server as a pubsub service.

SVN Revision: 1019
This commit is contained in:
Badlop 2007-12-04 11:38:00 +00:00
parent f8c4e86977
commit 1724ee2b15
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2007-12-04 Badlop <badlop@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: Bugfix: don't report the Jabber
server as a pubsub service.
2007-12-03 Mickael Remond <mremond@process-one.net>
* src/mod_muc.erl: Added option to limit the number of room a user is

View File

@ -294,15 +294,12 @@ update_database(Host) ->
%%
disco_local_identity(Acc, _From, _To, [], _Lang) ->
Acc ++ [{xmlelement, "identity", [{"category", "pubsub"}, {"type", "service"}], []},
{xmlelement, "identity", [{"category", "pubsub"}, {"type", "pep"}], []} ];
Acc ++ [{xmlelement, "identity", [{"category", "pubsub"}, {"type", "pep"}], []} ];
disco_local_identity(Acc, _From, _To, _Node, _Lang) ->
Acc.
disco_sm_identity(Acc, _From, _To, [], _Lang) ->
Acc ++ [
{xmlelement, "identity", [{"category", "pubsub"}, {"type", "service"}], []},
{xmlelement, "identity", [{"category", "pubsub"}, {"type", "pep"}], []} ];
Acc ++ [{xmlelement, "identity", [{"category", "pubsub"}, {"type", "pep"}], []} ];
disco_sm_identity(Acc, From, To, Node, _Lang) ->
LOwner = jlib:jid_tolower(jlib:jid_remove_resource(To)),
Acc ++ case node_disco_identity(LOwner, From, Node) of