comparison idavoll/idavoll.py @ 11:d599da9179ab

Don't return disco#info, that's silly. Remove left-over print statement.
author Ralph Meijer <ralphm@ik.nu>
date Fri, 09 Jul 2004 15:45:35 +0000
parents 688992a789e4
children 68e900b46d49
comparison
equal deleted inserted replaced
10:36f0ce354ce8 11:d599da9179ab
28 xmlstream.addObserver(IQ_GET, self.iqFallback, -1) 28 xmlstream.addObserver(IQ_GET, self.iqFallback, -1)
29 xmlstream.addObserver(IQ_SET, self.iqFallback, -1) 29 xmlstream.addObserver(IQ_SET, self.iqFallback, -1)
30 30
31 def getFeatures(self, node): 31 def getFeatures(self, node):
32 if not node: 32 if not node:
33 return [NS_DISCO_INFO, NS_DISCO_ITEMS, NS_VERSION] 33 return [NS_DISCO_ITEMS, NS_VERSION]
34 34
35 def onVersion(self, iq): 35 def onVersion(self, iq):
36 print "version?"
37 iq.swapAttributeValues("to", "from") 36 iq.swapAttributeValues("to", "from")
38 iq["type"] = "result" 37 iq["type"] = "result"
39 name = iq.addElement("name", None, 'Idavoll') 38 name = iq.addElement("name", None, 'Idavoll')
40 version = iq.addElement("version", None, '0.1') 39 version = iq.addElement("version", None, '0.1')
41 self.send(iq) 40 self.send(iq)