MOZOR

  • Home
  • About Me
  • Archives
  • Sitemap
« Krush is being retired
Podcast »

mIRC Scripting

A user asked in #mozor today how to setup mIRC to automatically join some channels and how to have auto-identify to NickServ. I played around a little bit with mIRC coding and have some code snippets that might help.

First off, channel joins can be done through the Favorite Channels list in mIRC, so you don’t HAVE to code this in. But, if you’d rather do this the hard way, I’ve got it mentioned. I’d also recommend not using the method below to automatically authenticate, because it doesn’t take into account what happens if services fails for a bit and you need to re-authenticate.

To start with, we need to add a connect clause, and tell it to only do this if the network is Mozor!

on *:CONNECT: { if (mozor isin $network) { } }

Next, we need to add the appropriate values in to tell it to identify, and to join some channels. In my example, I want to delay joining the channels to give NickServ time to identify me first, and I join #mozor and #mozor2…

on *:CONNECT: { if (mozor isin $network) {
.timer 1 5 .join #mozor
.timer 1 6 .join #mozor2
}
}

You’ll notice I have .timer 1 5 on one line, and .timer 1 6 on the next. All this does is tells mIRC to delay that command by 5 seconds, and the next by 6 seconds. You can replace those with whatever numbers you want, in seconds, just keep in mind that not giving NickServ enough time may cause you to not be opped automatically when you join, and you may not yet have your services-provided hostmask.

Lastly, we want to identify when NickServ tells us we’re not identified. Here’s the code for that.

on *:NOTICE:*This*nickname*is*registered*:?: { .msg nickserv identify PASSWORD }

Needless to say, you’ll want to replace PASSWORD with your actual password.

Hopefully, this will help our users out!

This entry was posted on Wednesday, February 11th, 2009 at 8:32 pm and is filed under Random. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Pages

  • Connecting
  • Network Rules
  • Web Client

© 2005-2009 Mozor.net
Powered by WordPress