A irssi script to rename chat.facebook.com nicks in bitlbee from e.g. "u1359078110" to "AEvarArnfjord"
Latest commit bf561a5 May 26, 2010 @avar For decode() + unidecode() to work, bitlbee must use the utf-8 charset
decode('utf8', $nick) only works as intended it Bitlbee has been
explicitly configured to use the utf-8 charset. Document that this is
the case.

for some of the correspondence that led to this patch.

Reported-by: Miklos Vajna <vmiklos@frugalware.org>
Tested-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>


This is a irssi script to automatically issue bitlbee rename commands for nonsensical nicks like u1359078110, changing them into e.g. AEvarArnfjord.

To do this it uses the Text::Unidecode module. You must install it for the script to work, either from CPAN or from your package manager. E.g. aptitude install libtext-unidecode-perl in Debian and Ubuntu.

Additionally, Bitlbee itself must be configured to use utf-8 as its charset. To find out if that's the case, do this in the &bitlbee channel:

<@avar> set charset
<@root> charset = `utf-8'

If not, just set the charset to utf-8 like so:

<@avar> set charset utf-8
<@root> charset = `utf-8'


This script is originally from nowhere.dk modified by Ævar Arnfjörð Bjarmason to support Unicode names.