diff options
author | Lance Stout <lancestout@gmail.com> | 2010-11-18 00:44:51 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-11-18 00:44:51 -0500 |
commit | 58b95e4ae45432ae97bd643c591f4f078f29f300 (patch) | |
tree | 0bf29e982c6f7a7d486d00f01188e021ab193aa1 /examples/echo_client.py | |
parent | debf90935981622c7b23009b7edeb311fd57ee5c (diff) | |
parent | 60d3afe6b6814bb5d30c4d4d355451d3c15364ca (diff) | |
download | slixmpp-58b95e4ae45432ae97bd643c591f4f078f29f300.tar.gz slixmpp-58b95e4ae45432ae97bd643c591f4f078f29f300.tar.bz2 slixmpp-58b95e4ae45432ae97bd643c591f4f078f29f300.tar.xz slixmpp-58b95e4ae45432ae97bd643c591f4f078f29f300.zip |
Merge branch 'develop' of github.com:fritzy/SleekXMPP into roster
Diffstat (limited to 'examples/echo_client.py')
-rwxr-xr-x | examples/echo_client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/echo_client.py b/examples/echo_client.py index 99967d5f..f449ce4e 100755 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -105,6 +105,10 @@ if __name__ == '__main__': logging.basicConfig(level=opts.loglevel, format='%(levelname)-8s %(message)s') + if None in [opts.jid, opts.password]: + optp.print_help() + sys.exit(1) + # Setup the EchoBot and register plugins. Note that while plugins may # have interdependencies, the order in which you register them does # not matter. |