changeset 2668:165c3f2950dc

Fix a typo and an error introduced in recent refactoring.
author Karol Nowak <grzywacz@sul.uni.lodz.pl>
date Mon, 13 Aug 2007 13:14:50 +0200
parents 9e1a05495686
children 7179217f745e
files jabberbot/xmppbot.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/xmppbot.py	Sun Aug 12 23:13:37 2007 +0200
+++ b/jabberbot/xmppbot.py	Mon Aug 13 13:14:50 2007 +0200
@@ -457,7 +457,7 @@
 
         """
         if not isinstance(form, forms.Form):
-            raise ValueErrur("The 'form' argument must be of type pyxmpp.jabber.dataforms.Form!")
+            raise ValueError("The 'form' argument must be of type pyxmpp.jabber.dataforms.Form!")
 
         _ = self.get_text(JID(jid).bare().as_unicode())
 
@@ -821,7 +821,8 @@
             # Unknown resource, add it to the list
             else:
                 contact.add_resource(jid.resource, show, priority)
-                self.supports(jid, u"jabber:x:data")
+		# Discover capabilities of the newly connected client
+                contact.service_discovery(jid)
 
             if self.config.verbose:
                 self.log.debug(contact)