Fun with BitchX

I have been on IRC quite a bit lately, and I have been having some fun getting my current client, BitchX, working nicely. I have not done too much so far, but I have got a few more tricks up my sleeve.

First of all, the following in my ~/.bitchxrc file automatically validates me with NickServ on Freenode and Wyldryde:

 # My "passwords"
assign FREENODE_PASSWORD password
assign WYLDRYDE_PASSWORD password

 # Command to register with NickServ
 # Sending the appropiate password to the network

alias nsreg {
    userhost NickServ -cmd {
        if ( rmatch($3@$4 NickServ@services.) ) {
            echo NSREG: Sending FreeNode Credentials
            ^msg nickserv identify $FREENODE_PASSWORD
        }
        if ( rmatch($3@$4 services@wyldryde.net) ) {
            echo NSREG: Sending WyldRyde Credientials
            ^msg nickserv identify $WYLDRYDE_PASSWORD
        }
    }
}

 # Catch the notice from NickServ that the nick is registered

on ^notice 'NickServ This nickname is \\[owned registered\\]*' {
    ^nsreg
}

And finally, since there are many people who refer to me without using my nick (rayners), I put in the following code to catch other words and highlight those messages:

assign AR_WORDLIST david raynes dave rayners

on ^public '% % *\\[$AR_WORDLIST\\]*' {
        echo $fparse(PUBLIC_AR "" $0 "" $2-)
}

I will probably add some more words later, but that is working well enough so far.

Leave a comment

Recent Entries

  • Plugin Writing 101

    So, I’m planning on writing up some entries about various aspects of plugin development. While I have a couple topics already in mind, I thought...

  • The Olympics Make Me Want To Compete Again

    Every time the Olympics come around (most the summer ones) I always start to delude myself into thinking I could complete once again in the...

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

Close