Hey...
I just wrote my first TCL script.. after several hours of trying to get the syntax right, I finally got it working...
Basically when you use /msg bot login YOUR-PASS .. it will notice the user with a set message saying somthing like 'Im not a stormbot'.
The problem I'm having is that I cant set the variable for the set msg outside the procedure:
-- HERES MY CODE --
bind msg * login nologinsoz
proc nologinsoz {nick args} {
set nologinmsg "Idiot! I'm not a Stormbot! you cant login like this!"
set nologinidiot $nick
puthelp "NOTICE $nick :$nologinmsg"
return 0
}
What do i have to change so I could set the 'nologinmsg' variable outside the procedure? THNX!
(btw the 'set nologinidiot $nick' is for another part of the script where the person who tried it's nick can be recalled, not yet done that bit tho)
ta