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.

Patch Request: disabling various default actions

Old posts that have not been replied to for several years.
Locked
E
Exlax
Voice
Posts: 7
Joined: Thu Dec 16, 2004 2:39 pm

Patch Request: disabling various default actions

Post by Exlax »

Hi, I am requesting that soembody make a patch for me which would disable any built-in default actions. The only 1 I know of is:

Unbanning any banmask that matches its own

But if possible, I would like the patch to disable any others that exist. I will be greatly appreciative to anybody who can help me out here
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You asked about disabling eggdrops' defaults in another forum and were given solutions I believe.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

as demond stated in that other thread, bind to raw and return 1 (ignore) on whatever you want.

an example of ignoring any banmask which matches its own (with flawed ban matching :oops:. didnt test it much so its probably gonna break some other stuff too :twisted: ):

Code: Select all

bind RAW - MODE check:ban
proc check:ban { f k args } {
  set pm "" ; set mt 0
  set a [lindex $args 0]
  set m [join [lindex [split $a] 1]]
  set n [join [lrange [split $a] 2 end]]
  for {set i 0} {$i<[string length $m]} {incr i} {
    set c [string index $m $i]
    if {$c == "+"||$c == "-"} { incr mt ; set pm $c ; continue }
    if {![string match *$c* bovhlek]} {incr mt}
    set tm "$pm$c" ; set v [join [lindex [split $n] [expr $i - $mt]]]
    if {$tm=="+b"} {
      if [string match -nocase $v $::botname] { return 1 }
    }
  }
  return
}
edits: broken english
photon?
Locked