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.

channel notice invite protect

Old posts that have not been replied to for several years.
Locked
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

channel notice invite protect

Post by e-force »

Hello, can someone give me TCL, which protect my channel from "/notice #channel http://someurl.com" and "/notice #channel *#*" ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no, nobody can give you such script, if by "protect" you mean forbidding people to notice the chan with URLs and channel names

but you can kick & ban those people, using a script such as spambuster.tcl
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

Post by e-force »

thank you!
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

Post by e-force »

e-force wrote:thank you!
But it require apache 2.0 and eggdrop 1.6.x, i love my 1.4.x! It doesn`t work for me.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

why would you prefer 1.4 over 1.6?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I made a small proc earlier which I use on some channels on DALnet. Basically this triggers a small lock when a notice is sent, as generally notices are only sent by flooders. (ops and voices are exempted)

When a notice is sent by a non-op, non-voice user, the bot will lock the channel for some seconds to +mR if *m* is not already placed in the channel and then will go ahead and kick/ban that user and any other user which matches that users *!*@host.domain.com. A handy script to use.

Code: Select all

#Channels where the notice script is supposed to work on.
set noticechans "#india #sayangabang #italy #lcas #bharat"

bind notc - "*" chan:notice:kick

proc chan:notice:kick {nick uhost hand text {chan ""}} {
 global botnick noticechans notice_lock
  if {([lsearch -exact [string tolower $noticechans] [string tolower $chan]] == -1) || ([string equal $nick "ChanServ"]) || (![botisop $chan]) || ([isbotnick $nick]) || ([isop $nick $chan]) || ([isvoice $nick $chan]) || ([string match "Server flood protection activated for" $text])} { return 0 }
  if {(![info exists notice_lock($chan)]) && (![string match *m* [getchanmode $chan]])} {
   putquick "MODE $chan +mR-k flood.locked" -next;
   set notice_lock($chan) "locked"; utimer 10 [list remove:lock $chan]
   if {([info exists notice_lock($chan)])} { utimer 20 [list unset notice_lock($chan)] }
   }
    set noticeban "*!*@[lindex [split $uhost "@"] 1]"; putquick "MODE $chan +b $noticeban" -next; timer 60 "pushmode $chan -b $noticeban"
    putquick "KICK $chan $nick :0,1 Channel Notice Kick 12,0 - The usage of 2*notices* 12in this channel 2is prohibited." -next
     foreach user [chanlist $chan] {
      if {([string match -nocase *$noticeban* "${user}![getchanhost $user $chan]"]) && (![isop $user $chan]) && (![isvoice $user $chan])} {
       putquick "KICK $chan $user :T3: You are terminated - Copyright © 2004 awyeah Inc. All rights reserved." -next
       }
    }
 return 0
}

proc remove:lock {chan} {
 if {([botisop $chan]) && ([string match *m* [getchanmode $chan]])} {
  putquick "MODE $chan -mRk unlocked"; return
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

Post by e-force »

Thats right, this is the script exactly i`m searching for. Thank you verry much!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Hehe, okay well I use this in conjunction with two very similar scripts. If a the an action/channel message has more than the number of characters defined, say 300 chars or more, or has many control codes than defined, say more than 20, then it goes ahead and locks and does the same as this notice script does.

If you know how this works, I beleive you can make similar ones like this. :)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:I made a small proc earlier which I use on some channels on DALnet. Basically this triggers a small lock when a notice is sent, as generally notices are only sent by flooders. (ops and voices are exempted)

When a notice is sent by a non-op, non-voice user, the bot will lock the channel for some seconds to +mR if *m* is not already placed in the channel and then will go ahead and kick/ban that user and any other user which matches that users *!*@host.domain.com. A handy script to use.
you don't need to check for server notice (BTW, there are others besides "Server flood protection activated"); server notices don't triger NOTC bind
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I know, but once this serv notc, came when a flood occured.

-mesra.kl.my.dal.net- Server flood protection activated for #india

And the bot banned *!*@dal.net. So I was presuming, this as a redundant ban and that notice, mainly on the bahamut IRCd to be the source of that.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you should report that to eggheads as a bug :) not supposed to happen
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

awyeah wrote:And the bot banned *!*@dal.net.
Solution:
[06:51] <Enfield> [15:52] #Alchera# whois dalnet
[06:51] <Enfield> HANDLE PASS NOTES FLAGS LAST
[06:51] <Enfield> DALnet yes 0 fA 05:39 (#Ballarat)
[06:51] <Enfield> HOSTS: *!*@dal.net
DALnet services are the ones that get banned/ignored (depending on eggdrop flood settings) not the server itself! As NickServ &c are IRCOps the ban has no effect but the ignoring does which is why I added (yrs ago) DALnet as a global "friend". As for the "Server flood protection activated ..." notices, since DALnet banned file sharing that is now a very rare event these days.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked