mirc anti-guester(?)

By ChunkieMonkey on Aug 28, 2008

If you are guested on irc, and you have this script it will change your nick to your main nick and identify using your password, that you would have to set using variables.

Typo helped a lot with this and he helped me understand the on load section.

on *:load:{
  if (!%MainNick) { set %mainnick $$?="Enter your main nick." }
  if (!%password) { set %password $$?*="Enter your nickserv password." }
  if (!%homenetwork) { set %homenetwork $$?="Enter home server" }
}
on *:nick:{
  if ($nick == $me) && (Guest isin $newnick) && ($network == %homenetwork) {
    nick %mainnick
    .timer 1 3 Msg Nickserv identify %password
  }
}

Comments

Sign in to comment.
ChunkieMonkey   -  Aug 28, 2008

typo said that as well, but I went to bed after o.0 anyroad I'll do that....now I guess.

 Respond  
guest598594   -  Aug 28, 2008

I would use $network instead of $server. Or better yet, $iif($network,$v1,$server).

 Respond  
EL   -  Aug 28, 2008

O_O

 Respond  
ChunkieMonkey   -  Aug 28, 2008

Everythings fixed XD thanks a lot typo!

 Respond  
ChunkieMonkey   -  Aug 28, 2008

Fixed vasiline28, thanks o.0

 Respond  
vaseline28   -  Aug 28, 2008

if !(%MainNick)
I believe should be:

if (!%MainNick)
 Respond  
ChunkieMonkey   -  Aug 28, 2008

Updated with typos help

 Respond  
Typo   -  Aug 28, 2008

Your missing a closing bracket and you should be combining your if's and you need to make sure a variable exists before using it when it isnt optional.
Brackets are off and you should combine if's when possible and use * instead of level 1 in the on text.

on *:nick:{
  if ($nick == $me) && (Guest isin $newnick) { 
    nick %mainnick
    .timer 1 3 Msg Nickserv identify %password
  }
}

You need an On *:Load:{} with $inputs to set the two variables you use and possibly even another addition to the IF to make sure they exist before using them.

 Respond  
ChunkieMonkey   -  Aug 28, 2008

The introduction says you have to because how should I know what the users pass is?

 Respond  
Eugenio   -  Aug 28, 2008

Your missing a closing bracket and you dont set %password and %mainnick you should make it ask them on load and then set the variable

 Respond  
ChunkieMonkey   -  Aug 28, 2008

w/e

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.