Menu

#1 Support for recoding between channels

open
nobody
None
5
2005-02-11
2005-02-11
Anonymous
No

Hi

I was looking if there's a ready-made bot that can
bridge two IRC channels (in this case differently named
channels on the same server) and also recode between
charsets while doing that. Noticing relay-bot, I wonder
if that'd be something you'd want to implement (I'm no
good at perl). Namely, it should do something like this:

When Channel 1 (C1) receives a public message, first
it's checked if it's valid utf-8. If yes, it's
converted to latin-9 (for example), using eg. iconv's
iso-8859-15//TRANSLIT target to translitterate when
possible. Then the message is relayed to C2.

When C2 receives a public message, first it's again
checked, to be sure, if the message is already valid
utf-8. If not, it's converted to utf-8. Then the
message is relayed to C1.

Eyeing the perl a bit, it'd probably not require much
of someone who knows what he's doing, with
libtext-perl-iconv. Mostly it'd require support for
arbitrary channel bundles and not just same channel
name on different ircnets, and a charset attribute for
each channel/server combination (plus the actual
conversion calls, of course).

Of course, this is just a suggestion. Hope it intrigues
someone enough to do it. Pointers to other projects
already doing this are appreciated.

- Mikko Rauhala, mjrauhal@cc.helsinki.fi

Discussion


Log in to post a comment.