IRC anti-spam

Started by KAKAN, Sep 24, 2015, 06:20 PM

Previous topic - Next topic

KAKAN

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 }
oh no

Xmair

What about the bot?
OT : GW

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

Quote from: Xmair on Sep 24, 2015, 06:36 PMWhat about the bot?
OT : GW
I think its impossible
oh no

Xmair


Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Thijn

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.