diff options
author | Badlop <badlop@process-one.net> | 2007-12-04 11:38:00 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2007-12-04 11:38:00 +0000 |
commit | 1724ee2b1572f2c2a178cbbc5ed03939ad45ad24 (patch) | |
tree | 869b66dbf7d775ac129a0ef4e6e59447bb5e47c3 /src | |
parent | * ChangeLog: Fix conflict. (diff) |
* src/mod_pubsub/mod_pubsub.erl: Bugfix: don't report the Jabber
server as a pubsub service.
SVN Revision: 1019
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_pubsub/mod_pubsub.erl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index c218e171..dc9dd4a5 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -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 |