This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

advertise script

Old posts that have not been replied to for several years.
Locked
g
gine

advertise script

Post by gine »

hello folks,
i search a working advertise script what detecting any advertise in any text, like:
<gine> comomon join #xyz
<gine> comomon www.lalala.de
<gine> comomon http://

i diddnt find anyone in the tcl archive

but i need a temp ban, for 5 minutes

have anyone a script what work?

thx m8ts
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

You haven't payed much attention when (if) you have looked for one. Try this code:

Code: Select all

bind pubm - {* *#*} spam:pubm
bind pubm - {* *www.*} spam:pubm
bind pubm - {* *http://*} spam:pubm

proc spam:pubm {nick uhost hand chan text} {
  if {[matchattr $hand of|fo $chan] || [isop $nick $chan]} {
    return
  }
  scan $uhost {%*[^@]@%s} host
  newchanban $chan *!*@$host spam "Spaming?" 5
}
Once the game is over, the king and the pawn go back in the same box.
Locked