[PATCH] [XoIRC] Make default nicks more meaningful (#5385)
Phil Bordelon
phil at thenexusproject.org
Sat Dec 22 19:36:49 EST 2007
At last, a non-trivial patch.
By default, XoIRC uses the username when another nick is not
provided. Alas, for every XO, this is 'olpc'. This makes for
rather a mess in the IRC channels.
This patch instead generates a more-meaningful nick:
* It takes up to 11 alphabetic characters from the user's Sugar
nick;
* it appends a hyphen; and
* it adds the last four hexadecimal digits of the MD5 hash of
the user's public key.
The last serves a dual purpose: it (fairly) uniquely identifies
each XO, and it keeps the collisions to a theoretical minimum
if there are, say, lots of 'jane's or 'john's signing on.
The bug that this patch was originally posted to is at:
http://dev.laptop.org/ticket/5385
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generate-meaningful-nick.patch
Type: text/x-patch
Size: 1595 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20071222/67d967c2/attachment.bin>
More information about the Devel
mailing list