diff idavoll/pubsub.py @ 96:f289c3e1dd0a

Announce pubsub#delete-any feature.
author Ralph Meijer <ralphm@ik.nu>
date Tue, 23 Nov 2004 16:36:58 +0000
parents 3ad74552bbc7
children cf918d581da5
line wrap: on
line diff
--- a/idavoll/pubsub.py	Tue Nov 23 16:18:52 2004 +0000
+++ b/idavoll/pubsub.py	Tue Nov 23 16:36:58 2004 +0000
@@ -485,6 +485,14 @@
         xmlstream.addObserver(PUBSUB_RETRACT, self.onRetract)
         xmlstream.addObserver(PUBSUB_PURGE, self.onPurge)
 
+    def get_disco_info(self, node):
+        info = []
+
+        if not node:
+            info.append(disco.Feature(NS_PUBSUB + "#delete-any"))
+
+        return defer.succeed(info)
+
     def onRetract(self, iq):
         self.handler_wrapper(self._onRetract, iq)