Permalink
Browse files

Remove extra debugging code that made it into a commit.

  • Loading branch information...
1 parent f92f963 commit 2a8082407656bf78a487afcf20017b10ca6475cc @legastero legastero committed Aug 23, 2011
Showing with 3 additions and 18 deletions.
  1. +2 −17 examples/adhoc_provider.py
  2. +1 −1 examples/echo_client.py
View
@@ -85,17 +85,6 @@ def _handle_command(self, iq, session):
form.addField(var='greeting',
ftype='text-single',
label='Your greeting')
- form.addField(var='recipient',
- ftype='jid-single',
- label='Who to greet')
- form.addField(var='message',
- ftype='text-multi',
- label='Your message')
- form.addField(var='demobool',
- ftype='boolean',
- label='Test booleans',
- desc='Test default values too',
- value=True)
session['payload'] = form
session['next'] = self._handle_command_complete
@@ -137,13 +126,9 @@ def _handle_command_complete(self, payload, session):
form = payload
greeting = form['values']['greeting']
- recipient = form['values']['recipient']
- message = '\n'.join(form['values']['message'])
- if recipient is None:
- recipient = session['from']
- self.send_message(mto=recipient,
- mbody="%s, %s!\n%s" % (greeting, recipient, message),
+ self.send_message(mto=session['from'],
+ mbody="%s, World!" % greeting,
mtype='chat')
# Having no return statement is the same as unsetting the 'payload'
View
@@ -36,7 +36,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
"""
def __init__(self, jid, password):
- sleekxmpp.ClientXMPP.__init__(self, jid, password, plugin_config={'feature_mechanisms': {'use_mech': 'PLAIN'}})
+ sleekxmpp.ClientXMPP.__init__(self, jid, password)
# The session_start event will be triggered when
# the bot establishes its connection with the server

0 comments on commit 2a80824

Please sign in to comment.