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.
Help for those learning Tcl or writing their own scripts.
Dizzle
Op
Posts: 109 Joined: Thu Apr 28, 2005 11:21 am
Contact:
Post
by Dizzle » Mon Apr 07, 2008 1:23 pm
Sry for asking proberly a simple question, butt i have been looking through some scripts. And i really cant find it.
So i would like too ask you guys for some advice!
My problem is :
When i use a "set" commando like this
Code:
Code: Select all
proc pub:connect {event} {
global servhost botlogin botpass vhost
putquick "PRIVMSG $servhost :AUTH $botlogin $botpass"
set qauthed 1
if {$vhost} {
putquick "MODE $::botnick +x"
}
}
And i like too recall "qauthed" in another proc. Butt i really dont know how!
Thx for helpig
What's this real life ppl keep talking about ??? And where can I download it ???
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Apr 07, 2008 4:50 pm
You have to declare qauthed global. For example
Code: Select all
proc pub:connect {event} {
global servhost botlogin botpass vhost
global qauthed ;# this makes qauthed global and usable in other procs
putquick "PRIVMSG $servhost :AUTH $botlogin $botpass"
set qauthed 1
if {$vhost} {
putquick "MODE $::botnick +x"
}
}
proc example {} {
global qauthed
# you can get the value of $qauthed here
}