egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ban on msg

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
gasman
Voice


Joined: 17 Feb 2004
Posts: 10
Location: UK

PostPosted: Thu Aug 18, 2005 4:11 pm    Post subject: ban on msg Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 18, 2005 5:46 pm    Post subject: Reply with quote

you need a quality antispam script, for example spambuster
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Fri Aug 19, 2005 5:34 am    Post subject: Reply with quote

Hehe. Spamour! Razz
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
gasman
Voice


Joined: 17 Feb 2004
Posts: 10
Location: UK

PostPosted: Fri Aug 19, 2005 3:27 pm    Post subject: Reply with quote

demond ....too complex just something that will kick or ban anyone who messages the bot with the exeption of owner/s
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Aug 19, 2005 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sat Aug 20, 2005 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
gasman
Voice


Joined: 17 Feb 2004
Posts: 10
Location: UK

PostPosted: Sat Aug 20, 2005 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sat Aug 20, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
gasman
Voice


Joined: 17 Feb 2004
Posts: 10
Location: UK

PostPosted: Sat Aug 20, 2005 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sat Aug 20, 2005 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
gasman
Voice


Joined: 17 Feb 2004
Posts: 10
Location: UK

PostPosted: Sat Aug 20, 2005 4:08 pm    Post subject: Reply with quote

that seems to be doin it...much appreciated awyeah
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber