Bot abuse

By eqrunner on Aug 12, 2010

Script posted for reference.

Bot abuse is a small script I use in all my other scripts.
You simply put: botabuse on one of your top lines of a command script.
It will run the script noted below.

on alias botabuse, your bot checks the nick to see if it already is present in the botabuse hash table. if not it goes to the bottom and increases the $nick's count depending on their level.

If $nick is found and has an added count of greater than 60, then that $nick is put on the ignored list. The On *:nick: is there incase the user tries changing their nick while online. This string will also add the $newnick to the ignore list and leave the previous one there.

Yes, there are ways around this, like signing off and back on with a different $nick. But for the most part, this does the job.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;; BotAbuse  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;by eqrunner ;;;;

ON *:NICK: {
  var %botabuse_count = $hget(botabuse ,$nick)
  if (%botabuse_count > 1 ) {
    hinc -zm botabuse $newnick 1800
    ignore -pcntikdu1800 $newnick
    echo -s ALSO IGNORED: $nick changed to $newnick on $chan at $date(mm/dd/yyyy) $time(HH:nn.ss)

  }
}

alias botabuse {

  var %botabuse_count = $hget(botabuse ,$nick)
  if (%botabuse_count > 60 ) {
    .notice $nick is citing bot abuse. $me is now ignoring you.
    .notice eqrunner -IGNORED- $nick
    .msg BotServ ACT $chan adds $nick to $me $+ 's ignore list
    hinc -zm botabuse $nick 1800
    echo -s IGNORED: $nick on $chan at $date(mm/dd/yyyy) $time(HH:nn.ss)
    ignore -pcntikdu1800 $nick
  }
  if ($nick isop #) { hinc -zm botabuse $nick 15 }
  if ($nick ishop #) { hinc -zm botabuse $nick 30 }
  if ($nick isvoice #) { hinc -zm botabuse $nick 30 }
  if ($nick isreg #) { hinc -zm botabuse $nick 35 }
}

Comments

Sign in to comment.
eqrunner   -  Jul 24, 2012

@chachin , @Phil_FW version add's in code that will also ignore a user that signs off and signs back on a server with a new nick. My code at the top works just fine. But you are more than welcomed to use @Phil_FW's code if you have that issue.

 Respond  
chachin   -  Jul 24, 2012

@Phil_FW so you saying that your version is fixed?

 Respond  
Phil_FW   -  Jan 31, 2011

here is the script with a fix for the way around it by nick changing

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;; BotAbuse  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;by eqrunner ;;;;

ON *:NICK: {
  var %botabuse_count = $hget(botabuse ,$nick)
  if (%botabuse_count > 1 ) {
    hinc -zm botabuse $newnick 1800
    ignore -pcntikdu1800 $newnick
    echo -s ALSO IGNORED: $nick changed to $newnick on $chan at $date(mm/dd/yyyy) $time(HH:nn.ss)

  }
}

alias botabuse {

  var %botabuse_count = $hget(botabuse ,$nick)
  set %botabuse $nick $address($nick,2)
  if (%botabuse_count > 60 ) {
    .notice $nick is citing bot abuse. $me is now ignoring you.
    .notice eqrunner -IGNORED- $nick
    .msg BotServ ACT $chan adds $nick to $me $+ 's ignore list
    hinc -zm botabuse $nick 1800
    echo -s IGNORED: $nick on $chan at $date(mm/dd/yyyy) $time(HH:nn.ss)
    ignore -pcntikdu1800 $nick
  }
  if ($nick isop #) { hinc -zm botabuse $nick 15 }
  if ($nick ishop #) { hinc -zm botabuse $nick 30 }
  if ($nick isvoice #) { hinc -zm botabuse $nick 30 }
  if ($nick isreg #) { hinc -zm botabuse $nick 35 }
}

ON !@*:JOIN:#:{ 
  if ($+(*,%botabuse,*) iswm $wildsite) && (($chr(35) == $gettok(%botabuse,3,32)) {
var %botabuse_count = $hget(botabuse ,$nick)
  if (%botabuse_count > 1 ) {
    hinc -zm botabuse $newnick 1800
    ignore -pcntikdu1800 $newnick
    echo -s ALSO IGNORED: $nick changed to $newnick on $chan at $date(mm/dd/yyyy) $time(HH:nn.ss)
  }
}

it should work, im too lazy to use the whole script lol but from what u describe as the way to get around, it should work

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.