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.

kline spambots etc

Old posts that have not been replied to for several years.
Locked
L
Loki
Voice
Posts: 13
Joined: Sat Jun 14, 2003 4:50 am

kline spambots etc

Post by Loki »

Good day.
I have search this forum and i did not found what i,m looking for. I run unrealircd server and i'm looking for tcl that can oper up my bot /oper username password and idle on my chan´s and if the bot get priv msg like "hi there, have you seen my pic http://blabla" then the bot will auto kline the user. I hate this spambots and i want to perm kline them.
I hope that i somone have the script source out there :)
Best regards
Loki
L
Loki
Voice
Posts: 13
Joined: Sat Jun 14, 2003 4:50 am

Post by Loki »

This works

bind msg - visit visit
bind msg - http http
bind msg - www www

proc visit {nick host chan text} {
putserv "kline $nick"
}

proc http {nick host chan text} {
putserv "kline $nick"
}

proc www {nick host chan text} {
putserv "kline $nick"
}

But this works only if the single word is said, what mask can i use so the script works on "hi there, see my pic on http://lamersass and so on
Best regards
Loki
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

Loki wrote:But this works only if the single word is said, what mask can i use so the script works on "hi there, see my pic on http://lamersass and so on
Use bind pubm. Example: bind pubm - "*http://*" procname
proc procname {nick uhost hand chan text} {do stuff}
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
L
Loki
Voice
Posts: 13
Joined: Sat Jun 14, 2003 4:50 am

Post by Loki »

If i have understand you correct this would be the code
bind pubm - "*http://*" spam
bind pubm - "*www*" spam
bind pubm - "*visit*" spam

proc spam {nick uhost hand chan text} {
putserv "kline $nick"
}

This is not working :/ I still can say /msg Loki see me on http://lamer or /msg Loki see me @ www.lamer.info/lame.jpg and notthing happens, but if i say /msg Loki visit
then i get the kline. What is wrong in this script ?
Best regards
Loki
L
Loki
Voice
Posts: 13
Joined: Sat Jun 14, 2003 4:50 am

Post by Loki »

And one more thing, this script has to work only in priv msg and ignore chan chat's. I hope that somone can give me the code :) and thank´s for the reply dollar, i wish that your code would have work.
Best regards
Loki
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

See tcl-commands.doc for the bind type of "msgm".
L
Loki
Voice
Posts: 13
Joined: Sat Jun 14, 2003 4:50 am

Post by Loki »

I would like to thank strikelight for open my eyes :), of kors i found this in tcl-commands.doc. What can i say, i'm lazy to RTFM :P but here is the script working fine veeee
bind msgm - "*http://*" spam
bind msgm - "*visit*" spam
bind msgm - "*www*" spam

proc spam {nick user host text} {
putserv "kline $nick :Would You Like Some Green Egg With This Spam?"
}

putlog "kline spammers up and running"
Best regards
Loki
Locked