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.
panazonic
Voice
Posts: 11 Joined: Thu Feb 13, 2003 10:50 am
Location: Norway
Post
by panazonic » Sun Oct 19, 2003 9:53 am
Does anyone here have/can make a script that msg the user that failed op /msg BOT op PASS to join a spesific channel like this msg: You failed OP. Please join #chan for support
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Oct 20, 2003 8:45 am
Code: Select all
bind msg - op invalid:pass
proc invalid:pass {nick uhost hand arg} {
set pass [lindex [split $arg] 0]
if {![passwdok $hand $pass]} {
puthelp "NOTICE $nick :INVALID pass, join #chan for support."
}
}
this will notice the nick to join #chan if the password is not valid.
panazonic
Voice
Posts: 11 Joined: Thu Feb 13, 2003 10:50 am
Location: Norway
Post
by panazonic » Mon Oct 20, 2003 10:51 am
Thanks!
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Mon Oct 20, 2003 2:25 pm
Sir_Fz wrote: Code: Select all
bind msg - op invalid:pass
proc invalid:pass {nick uhost hand arg} {
set pass [lindex [split $arg] 0]
if {![passwdok $hand $pass]} {
puthelp "NOTICE $nick :INVALID pass, join #chan for support."
}
}
this will notice the nick to join #chan if the password is not valid.
It will also prevent eggdrop from opping a user even when their pass is correct...
Change to:
Code: Select all
unbind msg - op *msg:op
bind msg - op invalid:pass
proc invalid:pass {nick uhost hand arg} {
set pass [lindex [split $arg] 0]
if {![passwdok $hand $pass]} {
puthelp "NOTICE $nick :INVALID pass, join #chan for support."
return
}
*msg:op $nick $uhost $hand $arg
}
note: I'm not sure if *msg:op takes more parameters or not on newer eggdrops (I use 1.1.5 based bots), so you MIGHT need to change it a bit.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Oct 20, 2003 3:47 pm
*msg:op works fine on 1.6.13
panazonic
Voice
Posts: 11 Joined: Thu Feb 13, 2003 10:50 am
Location: Norway
Post
by panazonic » Mon Oct 20, 2003 8:29 pm
okey.. But.. I tried to use the code, but it closed...
And.. I'm not so good with tcl scripting (everyone starts one place
)
so.. can one of you pleeeease send me the tcl or something?
Dedan
Master
Posts: 260 Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis
Post
by Dedan » Mon Oct 20, 2003 10:33 pm
the "invalid:pass" proc needs to be intergrated
into the password proc ... we need your password proc
I once was an intelligent young man, now i am old and i can not remember who i was.
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Mon Oct 20, 2003 10:42 pm
Dedan wrote: the "invalid:pass" proc needs to be intergrated
into the password proc ... we need your password proc
Um, there is no integrating needed to be done... It is correct as is.
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Tue Oct 21, 2003 6:13 am
You need to catch unbinds
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Oct 21, 2003 7:06 pm
ppslim wrote: You need to catch unbinds
yes, only for the one case, such as this case, where it's already been unbound... ie. .rehash... However, it is not neccessarily true to say that 'you need to catch unbinds' in general, as there are cases where you do not have to.