Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: KAKAN on Sep 24, 2015, 06:20 PM

Title: IRC anti-spam
Post by: KAKAN on Sep 24, 2015, 06:20 PM
Hello. I made this tiny snip, this would prevent spamming in IRC channel
This won't kick ops, and it'll ban for 5 mins
Add this on remote, here's the script
on *:TEXT:*:#:{
  if ($nick isop $chan) { halt }
  inc -u6 %spam. [ $+ [ $nick ] ]
  if (%spam. [ $+ [ $nick ] ] == 6) {
    ban -ku300 $chan $nick Don't Spam! 5 Minute ban.
    halt
  }
}
If u want that ops will also be banned then remove this line:-
  if ($nick isop $chan) { halt }
Title: Re: IRC anti-spam
Post by: Xmair on Sep 24, 2015, 06:36 PM
What about the bot?
OT : GW
Title: Re: IRC anti-spam
Post by: KAKAN on Sep 25, 2015, 04:20 AM
Quote from: Xmair on Sep 24, 2015, 06:36 PMWhat about the bot?
OT : GW
I think its impossible
Title: Re: IRC anti-spam
Post by: Xmair on Sep 25, 2015, 05:25 AM
#mk.ctf have it.
Title: Re: IRC anti-spam
Post by: Thijn on Sep 25, 2015, 05:49 AM
Of course it's possible. Your IRC bot acts just like the mIRC client. Anything is possible :)
I'll see if I can find the time to make a snippet for it.