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.
-
ranny
- Halfop
- Posts: 49
- Joined: Wed Jun 22, 2005 2:00 pm
- Location: switzerland
Post
by ranny »
Hello,
I have this script
Code: Select all
bind pub - !reg procregister
proc procregister {nick host hand chan arg} {
global identify
set _nick [lindex $arg 0]
if ![string length $_nick] { set _nick $nick }
if {![info exists identify]} {set identifi "no"}
if {$identify($_nick) == "is a registered nick"} {set identifi "yes"}
putserv "privmsg $chan : $identifi"
}
bind raw - 307 identify
proc identify {from key arg} {
global identify
set nickidentify [lindex [split $arg] 1]
set identify($nickidentify) [lindex [split $arg :] 1]
return 0
}
if is registered nick, it's ok.
But if isn't registered nick, i have this error message: can't read "identify(lilo)": no such element in array.
Thanks in advance!!
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Try replacing the procregister proc with:
Code: Select all
proc procregister {nick host hand chan arg} {
global identify
set _nick [lindex $arg 0]
if ![string length $_nick] { set _nick $nick }
set identifi "no"
if {[info exists identify($_nick)] && $identify($_nick) == "is a registered nick"} {
set identifi "yes"
}
putserv "privmsg $chan :$identifi"
}
-
demond
- Revered One
- Posts: 3073
- Joined: Sat Jun 12, 2004 9:58 am
- Location: San Francisco, CA
-
Contact:
Post
by demond »
is that the whole script? that 307 reply is not forced by anything
also, I can't believe it works at all, since the 307 handler proc is wrong
-
awyeah
- Revered One
- Posts: 1580
- Joined: Mon Apr 26, 2004 2:37 am
- Location: Switzerland
-
Contact:
Post
by awyeah »
Yes, raw 307 is not forced by anything. The output would be like:
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================