[PATCH] [XoIRC] Make default nicks more meaningful (#5385)
Phil Bordelon
phil at thenexusproject.org
Fri Dec 28 12:17:44 EST 2007
Simon McVittie wrote:
> On Sat, 22 Dec 2007 at 18:36:49 -0600, Phil Bordelon wrote:
>> 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.
>
> If you instead chose the *first* few hex digits of the *SHA-1* of the user's
> public key, it'd match the beginning of the XO's default userIDs in the normal
> activity sharing/chat mechanism, which may be useful if you're trying to sort
> out network issues.
Simon,
Thanks for the feedback! Attached is a patch which does just that, instead
of the previous MD5 stuff. I wasn't aware that SHA1 wasn't the way to go,
but that's an easy change.
____________________________________________
Devel mailing list
Devel at lists.laptop.org
http://lists.laptop.org/listinfo/devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nickfix-v2.patch
Type: text/x-patch
Size: 1605 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20071228/aab073fd/attachment.bin>
More information about the Devel
mailing list