Opened 10 years ago

Closed 10 years ago

#3521 closed defect (invalid)

purple-url-handler doesn't handle irc:// links correctly

Reported by: dwayne Owned by:
Milestone: Component: libpurple
Version: 2.2.1 Keywords: irc url-handler
Cc:

Description

I've tried various formats for URL handling in purple-url-handler all seem to fail for IRC type URLs.

On my system this works: purple-url-handler "xmpp:friedel@jabber.obsidian.co.za"

While none of these work: purple-url-handler "irc:irc.freenode.net" purple-url-handler "irc://irc.freenode.net" purple-url-handler "irc://irc.freenode.net#pootle"

In all cases the following error is produced: [dwayne@localhost filters]$ purple-url-handler "irc://irc.freenode.net#pootle" /usr/lib/python2.5/site-packages/dbus/_dbus.py:248: DeprecationWarning?: The dbus_bindings module is not public API and will go away soon.

Most uses of dbus_bindings are applications catching the exception dbus.dbus_bindings.DBusException. You should use dbus.DBusException instead (this is compatible with all dbus-python versions since 0.40.2).

If you need additional public API, please contact the maintainers via <dbus@…>.

import dbus.dbus_bindings as m

Traceback (most recent call last):

File "/usr/bin/purple-url-handler", line 332, in <module>

main()

File "/usr/bin/purple-url-handler", line 314, in main

irc(uri)

File "/usr/bin/purple-url-handler", line 163, in irc

server = urllib.unquote_plus(match.group(2)) or ""

File "/usr/lib/python2.5/urllib.py", line 1158, in unquote_plus

s = s.replace('+', ' ')

AttributeError?: 'NoneType?' object has no attribute 'replace'

Change History (3)

comment:1 Changed 10 years ago by terrex

Explanation of pseudo-standard for irc url's which is followed by purple-url-handler can be read in http://www.mozilla.org/projects/rt-messaging/chatzilla/irc-urls.html

In example, to open a query to 'me' in 'irc.server.net' is: irc://irc.server.net/me,isnick You should have been configured an account in pidgin for protocol irc and server irc.server.net. I can confirm that works with no warning on 2.2.1:

terrex@belinda:~$ purple-url-handler irc://irc.irc-hispano.org/terrex,isnick terrex@belinda:~$

Cheers,

comment:2 Changed 10 years ago by dwayne

Thanks just read and checked and it also works for the irc://server/#channel format. Don't know how I messed that up :) This can safely be closed.

comment:3 Changed 10 years ago by datallah

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!