#419 closed defect (fixed)

bitlbee sends invalid IRC messages by failing to remove whitespace from screen names

Reported by: nwf@… Owned by:
Priority: major Milestone: 1.2.1
Component: BitlBee Version: 1.2
Keywords: whitespace protocol violation Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro: Debian GNU/Linux unstable, amd64


Tested on Bitlbee 1.2 (Debian unstable 1.2-4) using OSCAR; client is "irssi 0.8.12 (20071006 0939)". I've a number of buddies whose chosen formatting of their screen names involves spaces; bitlbee simply copies these strings into the IRC messages, which violates the protocol (RFC 2812 section 2.3.1; nickname is not allowed to contain spaces).

The upshot of all this is that irssi pukes things like the following into its control window: 11:56 [localhost] -!- Xxx Xx xx414@oscar JOIN :&bitlbee 11:56 [localhost] -!- Xxxxxx@oscar JOIN :&bitlbee 11:56 [localhost] -!- xxxxxxx10@oscar JOIN :&bitlbee 11:57 [localhost] -!- xxxxxxx10@oscar PRIVMSG xxx : ... where the displayed parts of the names are everything after the first space in the screen name's formatted form. (the reason irssi is getting confused is that it's trying to interpret the next chunk of characters as the IRC opcode; this suggests a somewhat interesting annoyance tactic to users known to be running bitlbee by synthesizing IRC events.)

Bitlbee should canonicalize screen names (as it does with aliases) and if necessary maintain an internal mapping back. (I believe, on OSCAR, that such a map is unnecessary and that simply removing spaces suffices. I don't know about other protocols.)

Attachments (0)

Change History (2)

comment:1 Changed at 2008-06-21T21:09:07Z by wilmer

Milestone: 1.2.1

Yep, I also saw this a little while ago. I'm quite surprised that it took six years for this to show up!

comment:2 Changed at 2008-06-22T09:34:26Z by wilmer

Resolution: fixed
Status: newclosed

Fixed in changeset:devel,394.

Just blindly killing all spaces before sending screennames from OSCAR to BitlBee.

Modify Ticket

as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.