ROT13 plugin for Xchat (in C)

Sunday, July 22nd, 2001 at 12:00 am | 2,746 views | trackback url

10 seconds of hacking produced a ROT13 plugin for XChat (in C).

Now I’ll have to add nick completion support and decoding of encoded channel text. Just something fun to tamper with for 10 minutes. Was an easy distraction.

Here’s the meat of the plugin:

int main(c) {
    while ((c = getchar()) + 1)
        putchar(isalpha(c) ? tolower(c) < 'n' ? c + 13 : c - 13 : c);
}

Ok, back to Embedded Linux and RSI.

Last Modified: Friday, March 25th, 2011 @ 10:34

Leave a Reply

You must be logged in to post a comment.

Bad Behavior has blocked 3639 access attempts in the last 7 days.