mIRC Home    About    Download    Register    News    Help

Print Thread
is there a way to check via nickserv a nick #250441 15/01/15 05:44 AM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline OP
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
like to see if "axax019" is registered or not?

i've been googling for an hour and found nothing

Re: is there a way to check via nickserv a nick [Re: HappyFappy] #250442 15/01/15 06:10 AM
Joined: Dec 2008
Posts: 1,512
westor Online
Hoopy frood
Online
Hoopy frood
Joined: Dec 2008
Posts: 1,512
/msg NickServ info NICK


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Re: is there a way to check via nickserv a nick [Re: westor] #250444 15/01/15 06:27 AM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline OP
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
thanks so much laugh


now during that check, is there a way to have the script read that and go through a code....


like:
Code:

on *:JOIN:#blahblahblah:{  
  if ($nick == superbay2093) { 
     /msg nickserv acc $nick
  }
}


how would i have a response from that?

like
Code:
on *:TEXT:?:{  
  if ($1 == superbay2093) { 
     if ($3 == 3) {
      halt
     }
     if ($3 == 0) {
      /kick # $nick 
      /mode # +b $wildsite
     }
  }
}

Re: is there a way to check via nickserv a nick [Re: HappyFappy] #250445 15/01/15 06:30 AM
Joined: Dec 2008
Posts: 1,512
westor Online
Hoopy frood
Online
Hoopy frood
Joined: Dec 2008
Posts: 1,512
I did not get you what really you want please explain a bit more you want when you do /msg nickserv info NICK to do what?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Re: is there a way to check via nickserv a nick [Re: westor] #250446 15/01/15 06:38 AM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline OP
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
theres been an issue w/ some people pretending to be the OP's in the channel


so i want to make a script that can check for fakes and real users
and kick/ban the fakes

Re: is there a way to check via nickserv a nick [Re: HappyFappy] #250447 15/01/15 06:59 AM
Joined: Dec 2008
Posts: 1,512
westor Online
Hoopy frood
Online
Hoopy frood
Joined: Dec 2008
Posts: 1,512
Fake users = Non registered users?

you want an script to kick/ban the users that are not registered to the nickserv?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Re: is there a way to check via nickserv a nick [Re: westor] #250448 15/01/15 07:00 AM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline OP
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
in a nutshell yes
but only for the OP's

Last edited by HappyFappy; 15/01/15 07:11 AM.
Re: is there a way to check via nickserv a nick [Re: HappyFappy] #250449 15/01/15 07:52 AM
Joined: Dec 2008
Posts: 1,512
westor Online
Hoopy frood
Online
Hoopy frood
Joined: Dec 2008
Posts: 1,512
Try use this code on an NEW FILE on the script editor:

Code:
ON !*:JOIN:#: {
  .timer[CHECK_ $+ $nick $+ _STATUS] 1 3 check_op_status $nick $chan
}

alias check_op_status {
  if (!$1) { return }
  if ($me !ison $2) { return }
  if ($1 !ison $2) { return }
  if ($1 !isop $2) { return }
  set -e %check_chan $2
  set -e %check_nick $1
  .msg NickServ info $1
}

ON ^*:NOTICE:*:?: {
  if ($nick == NickServ) && (%check_chan) && (%check_nick) {
    haltdef
    if (*isn't registered.* iswm $1-) && (%check_nick) && (%check_chan) {
      if ($me !ison %check_chan) { unset %check_* | return }
      if ($me !isop %check_chan) { unset %check_* | return }
      if (%check_nick !ison %check_chan) { unset %check_* | return }
      var %a = $address(%check_nick,2)
      mode %check_chan $iif(!%a,+b %check_nick,+bb %check_nick %a)
      kick %check_chan %check_nick [BANNED]: You are NOT allowed to stay into this room! - Your nickname is NOT registered!
      unset %check_*
    }
    halt
  }
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-