added some xep-0004 compatibility changes

This commit is contained in:
Nathan Fritz
2010-08-19 19:53:56 -07:00
parent d150b35464
commit eb9e72fe3e
2 changed files with 17 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class jobs(base.base_plugin):
iq['psstate']['payload'] = state
result = iq.send()
if result is None or type(result) == types.BooleanType or result['type'] != 'result':
logging.error("Unable to change %s:%s to %s" % (node, jobid, state))
logging.error("Unable to change %s:%s to %s" % (node, jobid, state))
return False
return True