mIRC Home    About    Download    Register    News    Help

Print Thread
#143645 26/02/06 08:44 PM
Joined: Feb 2006
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Feb 2006
Posts: 3
i need a script that will check and see if nicks are identify in channels and kick them if not and it to say ident ur nick plz help

#143646 26/02/06 08:49 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try //mode $chan +R this prevents any non-registered nicks joining the channel. smile

Nonetheless, if you are actually looking for code to do this then browse the forum putting keywords in "" quotes. I'll edit my post when I find one but, doesn't mean you can't look too! smile

Edit: I found a couple of results 1 2.

-Andy

#143647 26/02/06 10:12 PM
Joined: Feb 2006
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Feb 2006
Posts: 3
no what i want to do is like every 20 or 30 mins search the channel and see if that person has there nick identify and or registered and if not they get kicked is stead of haveing the channel +R

#143648 26/02/06 10:24 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You never mentioned a duration. I answered your question in 2 ways.

-Andy

#143649 26/02/06 10:27 PM
Joined: Feb 2006
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Feb 2006
Posts: 3
like every 20 minuites or every 30 minuites to scan for people who havent identifyed and for them to be kick and plkus none of them answered my question

#143650 26/02/06 10:33 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
In order to do that you'd have to whois everyone in the channel, how about...

When a user joins if they're identified they get voiced if they aren't identified they are just a regular user. Have a timer between 20 and 30 minutes and kick the regular users?

I could try and do that if it appeals to you, but I'd generally avoid whoising everyone every 20-30 minutes this is fine depending on the amount of users in a channel.

Code:
On me:*:Join:#: {
  .timer 0 1200 check_nicks $chan
}

On @*:Join:#: {
  .enable #reg.nick
  set %reg.nick.f.reg $nick
  set %reg.nick.chan $chan
  whois $nick
  .timer 1 1 chk.reg
}

alias chk.reg {
  if ($var($+(%,reg.nick.,%reg.nick.f.reg),0)) {
    msg %reg.nick.chan %reg.nick.f.reg You're registered!
    if ($me isop %reg.nick.chan) mode $v2 +v %reg.nick.f.reg
  }
  else {
    msg %reg.nick.chan You have not registered.
  }
  unset %reg.nick.*
}
#reg.nick off
Raw 311:*:halt
Raw 307:*: {
  set $+(%,reg.nick.,$2)
  halt
}
Raw 319:*:halt
Raw 312:*:halt
Raw 309:*:halt
Raw 325:*:halt
Raw 317:*:halt
Raw 318:*: {
  .disable #reg.nick
  halt
}
#reg.nick end

alias check_nicks {
  if ($me isop $1) {
    var %x = 1
    while (%x <= $nick($1,0,r)) {
      kick $1 $nick($1,%x,r) You must be registered.
      inc %x
    }
  }
}


Give that a try, it's untested. Should work as soon as you re-join any channel.

-Andy


Link Copied to Clipboard