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.
Old posts that have not been replied to for several years.
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Fri Jan 10, 2003 9:57 pm
I am not sure which bidn you have used.
However, see the section in tcl-commands.doc regarding return codes (below the binds information).
WHat you return, will usualy effect how eggdrop works.
FOr floods, you can make a script that will do it's own protection, or get eggdrop to do it's own as well.
With msg binds, returning somthing like 1, will force it lot to log and so on.
MD87
Voice
Posts: 23 Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:
Post
by MD87 » Sat Jan 11, 2003 8:56 am
I was using msgm, returning 0, I've tried msgm returning 1, and msg returning 1 & 0, but it still logs it :/ I've included the proc as it is atm below to see if that helps
bind msgm -|- * mdbots:msgm
proc mdbots:msgm { nick address handle text } {
switch "[lindex $text 0]" {
clearchan { mdbots:chan:clear $nick $address $handle [lrange $text 1 end] }
help { mdbots:help:main $nick $address $handle [lrange $text 1 end] }
login { mdbots:login:msg $nick $address $handle [lrange $text 1 end] }
}
}
proc mdbots:login:msg { nick address handle text } {
set host [mdbots:generic:gethost $nick]
set user [lindex $text 0]
set pass [lindex $text 1]
if { [passwdok $user $pass] } {
putserv "NOTICE $nick :Password OK. Added host $host"
#TODO: Actually add the host
putcmdlog "($nick!$address) login $user PASS..."
}
return 0;
}
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sat Jan 11, 2003 9:00 am
Don't use the msgm bind for this.
Use the MSG bind.
It maks things far more easier to manage.
MD87
Voice
Posts: 23 Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:
Post
by MD87 » Sat Jan 11, 2003 9:10 am
Just tried using a msg bind w/o the proc with the switch in and it works fine
TY