mIRC Home    About    Download    Register    News    Help

Print Thread
#23991 13/05/03 06:40 PM
Joined: Apr 2003
Posts: 55
T
Babel fish
OP Offline
Babel fish
T
Joined: Apr 2003
Posts: 55
How to kick someone and kick his clone to in
1 time ???

#23992 13/05/03 06:41 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i think you could only do that using his ip confused


new username: tidy_trax
#23993 13/05/03 08:59 PM
Joined: Mar 2003
Posts: 63
N
Babel fish
Offline
Babel fish
N
Joined: Mar 2003
Posts: 63
Well you need only to scan the channel and find all the nicks which have the same address as the one you want to kick, having supposed you have done a /who #chan before hand, you can use this little alias :
Code:
alias kick2 {
  var %chan = $$1
  var %nick = $$2
  var %reason = Clones not allowed
  var %i = 0
  var %MAX = $nick(%chan,0)
  while (%i <= %MAX) {
    var %nick2kick = $nick(%chan,%i)
    if $address(%nick2kick,2) iswm $address(%nick,2) { kick %chan %nick2kick %reason }
    inc %i
  }
}

Hope I have helped you smile

#23994 13/05/03 09:39 PM
Joined: Jan 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Jan 2003
Posts: 96
Code:
on 1:JOIN:#:{
  ;----- CLONESCAN SECTION
  :clonescanner
  if ($nick == $me) { goto cloneskip }
  if ($address($nick,2) == $address($me,2)) { goto cloneskip }
  if ($nick isop $chan) { goto cloneskip }
  unset %Clone
  :loop
  inc %Clone
  %Clone.Name = $ialchan($address($nick,2),$chan,%Clone).nick
  if (%Clone.Name == $nick) { goto loop }
  if (%Clone.Name isop #) { goto loop }
  if (%Clone.Name == $null) { goto cloneskip }   
  echo -a  CLONES DETECTED: $nick and %Clone.Name in $chan $+ ...
  goto loop  
  :cloneskip
  unset %Clone | unset %Clone.Name
}
;This baby will echo to you when someone loads in a clone to your chan, and it is the nick on the RIGHT side that is the clone. right click on it and select your newly added nicklist "clonekick" (see below).
;it will surely ignore if it is you and/or if its an @ (if nick1 is opped when the clone joins)
;it can also easilly be changed to autoboot the clone.


Menu nicklist {
-
  $iif($me !isop #,$style(2)) Clone Kick:kick $$1 Get that Clone Outa here!-
}
;new nicklist item, so you can right click on the clonename and kick it :)
;the item is ghosted out if youre not opped...


#23995 14/05/03 12:11 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
Yes, a clone scanner would help....

However, if you wanted to kick more than one person based on their address, use this:

Code:
alias ak {
  if $chan(#).ial {
    if ($2 != $null) {
      %total.matched = 1
      while (%total.matched <= $ialchan($1,$chan,0)) {
        if ($ialchan($$1,$chan,%total.matched).nick != $me) { kick $chan $ialchan($$1,$chan,%total.matched).nick k $$2- }
        inc %total.matched
      }
      unset %total.matched
      halt
    }
    if ($2 == $null) {
      %total.matched = 1
      while (%total.matched <= $ialchan($1,$chan,0)) {
        if ($ialchan($$1,$chan,%total.matched).nick != $me) { kick $chan $ialchan($$1,$chan,%total.matched).nick k $me }
        inc %total.matched
      }
      unset %total.matched
      halt
    }
  }
  else { echo $colour(info) $chan IAL for $chan isn't on. /who $chan to update }
}


Usage:

/sk *!*@addresstype reason

replace *!*@addresstype with the address you wish to kick.

ie:
/sk *!*@yellow*.telstra.* telstra sucks lemon

The kicker would then loop through all the nicks in the channel, and if their address matches the one specified, then it will kick them with the reason specified.
This will only work if the IAL for a channel is on.

This can be used in conjuction with the clone scanner posted by jesper.


--------
mIRC - fun for all the family (except grandma and grandpa)
#23996 15/05/03 03:32 PM
Joined: Apr 2003
Posts: 55
T
Babel fish
OP Offline
Babel fish
T
Joined: Apr 2003
Posts: 55
Thanks all

#23997 15/05/03 03:51 PM
Joined: Apr 2003
Posts: 55
T
Babel fish
OP Offline
Babel fish
T
Joined: Apr 2003
Posts: 55
I tested but nothing is working


Link Copied to Clipboard