| View previous topic :: View next topic |
| Author |
Message |
gasman Voice
Joined: 17 Feb 2004 Posts: 10 Location: UK
|
Posted: Thu Aug 18, 2005 4:11 pm Post subject: ban on msg |
|
|
Can any help with a script that will ban or kick anyone messaging the bot
with certain exceptions....i think this may be a good script for banning/kicking certain types of part/join spam bots that msge everyone either onjoin or when they connect and for unauthorised attempts to access the bot.
TIA.. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 18, 2005 5:46 pm Post subject: |
|
|
| you need a quality antispam script, for example spambuster |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Aug 19, 2005 5:34 am Post subject: |
|
|
Hehe. Spamour!  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
gasman Voice
Joined: 17 Feb 2004 Posts: 10 Location: UK
|
Posted: Fri Aug 19, 2005 3:27 pm Post subject: |
|
|
| demond ....too complex just something that will kick or ban anyone who messages the bot with the exeption of owner/s |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 19, 2005 3:48 pm Post subject: |
|
|
| I'd code that for you, it's 3 lines only, but I'm currently reconsidering that kind of stuff, I am inclined to think that we should cultivate a reasonable and fair eggdrop usage patterns, so I'd probably no more help implementing tasks that are, IMHO, lame or/and unfair to those less fortunate (for not having ops) |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Aug 20, 2005 3:53 am Post subject: |
|
|
Spam messages from random bots and drones (whose nicks aren't registered 99.9% of the time) can be avoided by simply using the umode +R on bahamut and mostly other IRCd's. (/mode <yournick> +R) So people with unregistered nicks or unidentified nicks will not be able to message you then and you will get a raw error from the IRCd.
As for mass join clones, fast join/parts aka revolving door try a script I made ago sometime. You can find it on egghelp's TCL archive under the name of "Mass Clone Join/Part and Revolving Door Protection". _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
gasman Voice
Joined: 17 Feb 2004 Posts: 10 Location: UK
|
Posted: Sat Aug 20, 2005 8:31 am Post subject: |
|
|
| so its not possible to do just what i asked...i.e. kick/ban anyone msging the bot with the exception of owners...these COULD be spammers but also could be illegal attempts to acces the bot....?? |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Aug 20, 2005 1:32 pm Post subject: |
|
|
Something like this should work:
| Code: |
bind msgm - "*" msg:bot
proc msg:bot {nick uhost hand text} {
if {![matchattr $hand n] && ![matchattr $hand n $chan]} {
foreach chan [channels] {
if {[botisop $chan] && [onchan $nick $chan]} {
putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"
putserv "KICK $chan $nick :Do not message me in private!"
}
}
}
}
|
_________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
gasman Voice
Joined: 17 Feb 2004 Posts: 10 Location: UK
|
Posted: Sat Aug 20, 2005 2:33 pm Post subject: |
|
|
awyeah...i very much appreciate your help in this
i made a XXX.tcl file from your text
now i get Tcl error [msg:bot]: can't read "chan": no such variable
have i missed something? |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sat Aug 20, 2005 3:52 pm Post subject: |
|
|
Just a little tweak, and here we go... use this:
| Code: |
bind msgm - "*" msg:bot
proc msg:bot {nick uhost hand text} {
if {![matchattr $hand n]} {
foreach chan [channels] {
if {[botisop $chan] && [onchan $nick $chan]} {
putserv "MODE $chan +b *!*@[lindex [split $uhost @] 1]"
putserv "KICK $chan $nick :Do not message me in private!"
}
}
}
}
|
_________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
gasman Voice
Joined: 17 Feb 2004 Posts: 10 Location: UK
|
Posted: Sat Aug 20, 2005 4:08 pm Post subject: |
|
|
| that seems to be doin it...much appreciated awyeah |
|
| Back to top |
|
 |
|