mIRC Home    About    Download    Register    News    Help

Print Thread
#152658 04/07/06 09:34 AM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
Code:
 
CTCP *:dcc *:*: {
  IF (($2 == send) || ($2 == chat)) {
    IF (%dccs. [ $+ [ $wildsite ] ] == $null) {
      SET -u60 %dccs. [ $+ [ $wildsite ] ] 1
      return
    }
    else { inc %dccs. [ $+ [ $wildsite ] ] }
    IF (%dccs. [ $+ [ $wildsite ] ] => 3) {
      echo -a Dcc Flood from $wildsite   
    }
  }
}
 


It will detect by inc %dccs. but doesnt kick after over 2

#152659 04/07/06 04:38 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
This shouldn't affect the script's ability to work, but it's good practice to use all lowercase on keywards such as "if","else","return",etc. I notice you alternated with the IF and else, just thought I'd let you know.

Aside from that, it appears you have your condition in the wrong order. Try using >= instead of => on the third if statement. Also, I assume you put the echo there because it wasn't working. If you need to know how to kick, try /help /kick and cycle through $comchan.


-KingTomato
#152660 04/07/06 04:43 PM
Joined: Jul 2006
Posts: 10
O
Pikka bird
Offline
Pikka bird
O
Joined: Jul 2006
Posts: 10
there is no real way or getting it to kick from a channel, as its DCC Chat, it can do it to you while your not on a channel, so the quickest way is to just ignore it using...

Code:
CTCP *:dcc *:*: {
  if ($2 == send) || ($2 == chat) {
    if (%dccs. [ $+ [ $wildsite ] ] == $null) {
      set -u60 %dccs. [ $+ [ $wildsite ] ] 1
      return
    }
    else { inc %dccs. [ $+ [ $wildsite ] ] } 
    if (%dccs. [ $+ [ $wildsite ] ] => 3) {
      echo -a Dcc Flood from $wildsite
       [color:purple]ignore -d $address($nick,3)[/color] 
    }
  }
}


This will ignore DCC's from this nick allowing you to still see the messages that this person types to you...


Link Copied to Clipboard