Mercurial > pidgin
comparison libpurple/purple-url-handler @ 23070:4b4be7609072
Import a patch (with changes) from Debian:
* 20_purple-remote_friendly.patch:
- Make error messages friendlier when python-dbus is not installed
or if someone calls purple-remote/purple-url-handler with --help or -h
(Closes: #413204)
committer: Richard Laager <rlaager@wiktel.com>
author | Ari Pollak <ari@debian.org> |
---|---|
date | Wed, 21 May 2008 21:05:09 +0000 |
parents | fefe61275687 |
children | 0565c227608d |
comparison
equal
deleted
inserted
replaced
22906:67148f43fd2f | 23070:4b4be7609072 |
---|---|
293 elif command.lower() == "addfriend": | 293 elif command.lower() == "addfriend": |
294 addbuddy(account, screenname) | 294 addbuddy(account, screenname) |
295 | 295 |
296 | 296 |
297 def main(argv=sys.argv): | 297 def main(argv=sys.argv): |
298 if len(argv) != 2: | 298 if len(argv) != 2 or argv[1] == "--help" or argv[1] == "-h": |
299 print "Usage: %s URI" % argv[0] | 299 print "Usage: %s URI" % argv[0] |
300 print "Example: %s \"xmpp:romeo@montague.net?message\"" % argv[0] | 300 print "Example: %s \"xmpp:romeo@montague.net?message\"" % argv[0] |
301 return | 301 |
302 if len(argv) != 2: | |
303 sys.exit(1) | |
304 else: | |
305 return 0 | |
302 | 306 |
303 uri = argv[1] | 307 uri = argv[1] |
304 type = uri.split(":")[0] | 308 type = uri.split(":")[0] |
305 | 309 |
306 try: | 310 try: |