Modify

#701 closed defect (obsolete)

Nick generation screws up with invalid characters in nick_format

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: BitlBee Version:
Keywords: Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:

Description (last modified by dx)

As requested by bitlbee itself. :-) It's bitlbee v3 BTW.

It happened after any of these:

&bitlbee# acc 6 set nick_format %nick[$account]
&bitlbee# acc 6 set nick_format %handle[$account]
&bitlbee# acc 6 set nick_format %-@nick[$account]

With the default setting it works fine. :-)

08:22:39 <@bitlbee> FAILED. Returning an insane nick now. Things might break. Good luck, and please don't forget to paste the lines up here in
                    #bitlbee on OFTC or in a mail to wilmer@gaast.net
08:22:39 <@bitlbee> Warning: Almost had an infinite loop in nick_get()! This used to be a fatal BitlBee bug, but we tried to fix it. This message
                    should *never* appear anymore. If it does, please *do* send us a bug report! Please send all the following lines in your report:
08:22:39 <@bitlbee> Trying to get a sane nick for handle TivoliUtrecht
08:22:39 <@bitlbee> Char 0: �/-99
08:22:39 <@bitlbee> Char 1: _/95
08:22:39 <@bitlbee> Char 2: _/95
08:22:39 <@bitlbee> Char 3: _/95
08:22:39 <@bitlbee> Char 4: _/95
08:22:39 <@bitlbee> Char 5: _/95
08:22:39 <@bitlbee> Char 6: _/95
08:22:39 <@bitlbee> Char 7: _/95
08:22:40 <@bitlbee> Char 8: _/95
08:22:40 <@bitlbee> Char 9: _/95
08:22:40 <@bitlbee> Char 10: _/95
08:22:40 <@bitlbee> Char 11: _/95
08:22:40 <@bitlbee> Char 12: _/95
08:22:40 <@bitlbee> Char 13: _/95
08:22:40 <@bitlbee> Char 14: _/95
08:22:40 <@bitlbee> Char 15: _/95
08:22:40 <@bitlbee> Char 16: _/95
08:22:40 <@bitlbee> Char 17: _/95
08:22:40 <@bitlbee> Char 18: _/95
08:22:40 <@bitlbee> Char 19: _/95
08:22:40 <@bitlbee> Char 20: _/95
08:22:40 <@bitlbee> Char 21: _/95
08:22:40 <@bitlbee> Char 22: _/95
08:22:40 <@bitlbee> Char 23:

Attachments (0)

Change History (4)

comment:1 Changed at 2010-10-23T06:49:00Z by harmen@…

Erh, this was my ticket. :-) Forgot to toss in my name...

comment:2 Changed at 2010-10-23T20:57:13Z by wilmer

Summary: Error message: Returning an insane nick nowNick generation screws up with invalid characters in nick_format

This is definitely a bug, the evaluator for nick_format should fix this by checking for invalid chars (in your case $ instead of %account. In the other ticket (#702) the invalid chars are parentheses.

The only chars allowed in IRC nicks are:

static char *nick_lc_chars = "0123456789abcdefghijklmnopqrstuvwxyz{}^`-_|";
static char *nick_uc_chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ[]~`-_\\";

comment:3 Changed at 2014-02-04T06:32:35Z by dx

Description: modified (diff)

Formatting fixes in the description.

Does this bug still make sense? I don't see anything about insane nicks in the current code.

comment:4 Changed at 2014-02-04T09:09:36Z by wilmer

Resolution: obsolete
Status: newclosed

The error message has been removed yes, since the bug that made me add it is gone for some time by now.

I don't know for sure whether I've fixed handling of invalid char in nick_format. If I did, then this can be closed.

A quick check shows that I did, stuff gets stripped properly now.

Modify Ticket

Action
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.