mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 83
H
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

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
/msg NickServ info NICK


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2014
Posts: 83
H
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
     }
  }
}

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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 <-
Joined: Sep 2014
Posts: 83
H
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

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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 <-
Joined: Sep 2014
Posts: 83
H
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.
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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 <-

Link Copied to Clipboard