EvilSeph
Administrator
Here's an auto-identify script that you can use with mIRC to connect to and auto-identify on the Malloc.us IRC network. Of course, since it is commented, you can use it to learn how to mIRC script and/or modify it to work on other networks too.
To use the script, do the following:
[highlight=mirc];Lines prefixed with a semi-colon, like this one,
; are comments.
;This is an auto-connect on startup script written by EvilSeph to make your
; client automagically connect on startup to Malloc.us.
;This line tells mIRC what to do when it starts up
; using something called an on start event.
;
;The syntax is:
; on level:event:{
; code
; }
;
;Here we're telling mIRC to process the code in the curly braces
; when it starts up.
on *:start:{
;This next line tells mIRC to connect to irc.malloc.us on startup:
server irc.malloc.us
}
;This is an auto-identify script written by EvilSeph for use on Malloc.us
;
;When you connect to Malloc.us and your nick is registered
; a Network Service called NickServ notices
; you (i.e. sends you a private message)
; telling you to identify
;This line tells mIRC to listen for this notice
; using something called an on notice event.
;
;The syntax is:
; on level:eventarams:target:{
; code
; }
;
;Here we're telling mIRC to listen for a notice that
; contains the text "This nickname is registered and protected."
; followed by and preceded by anything since we use wildcards.
;
on *:notice:*This nickname is registered and protected.*:?:{
;This next line provides some extra security
; since the event applies to anyone and anything
; without security, people could pretend to be NickServ
; send you a notice that matches the params
; and you'd end up sending them your password.
;
;Here we check if the person who sent you the notice is
; named "NickServ". For extra security we also check
; if the server you are connected to is really a
; Malloc.us server.
if (($nick == NickServ) && (*.malloc.us iswm $server)) {
;If this security check is passed, we let mIRC send "NickServ"
; our password to identify. Please replace PASSWORD with
; the password you used to register your nickname.
.ns identify PASSWORD
}
}[/highlight]
To use the script, do the following:
- Open mIRC if it isn't already.
- Press Alt + R or navigate to Tools -> Scripts and choose the Remotes tab.
- If you know what you are doing, you can just add your script into the file that is currently open in the mIRC Scripts Editor or you can open a new file by going to File -> New.
- Paste the script below while making sure to read the comments so that you know what to change (if anything).
- Save the script and reconnect to Malloc.us or restart mIRC and it should automate the entire connect and identify process whenever you start mIRC.
[highlight=mirc];Lines prefixed with a semi-colon, like this one,
; are comments.
;This is an auto-connect on startup script written by EvilSeph to make your
; client automagically connect on startup to Malloc.us.
;This line tells mIRC what to do when it starts up
; using something called an on start event.
;
;The syntax is:
; on level:event:{
; code
; }
;
;Here we're telling mIRC to process the code in the curly braces
; when it starts up.
on *:start:{
;This next line tells mIRC to connect to irc.malloc.us on startup:
server irc.malloc.us
}
;This is an auto-identify script written by EvilSeph for use on Malloc.us
;
;When you connect to Malloc.us and your nick is registered
; a Network Service called NickServ notices
; you (i.e. sends you a private message)
; telling you to identify
;This line tells mIRC to listen for this notice
; using something called an on notice event.
;
;The syntax is:
; on level:eventarams:target:{
; code
; }
;
;Here we're telling mIRC to listen for a notice that
; contains the text "This nickname is registered and protected."
; followed by and preceded by anything since we use wildcards.
;
on *:notice:*This nickname is registered and protected.*:?:{
;This next line provides some extra security
; since the event applies to anyone and anything
; without security, people could pretend to be NickServ
; send you a notice that matches the params
; and you'd end up sending them your password.
;
;Here we check if the person who sent you the notice is
; named "NickServ". For extra security we also check
; if the server you are connected to is really a
; Malloc.us server.
if (($nick == NickServ) && (*.malloc.us iswm $server)) {
;If this security check is passed, we let mIRC send "NickServ"
; our password to identify. Please replace PASSWORD with
; the password you used to register your nickname.
.ns identify PASSWORD
}
}[/highlight]