pls if any1 knwo such script:
i want a script to make +o users identify when they join the channel immeditaly and they cant do any pubcmds or anything before they identify to this tcl any1 know something like this pls??
Actually you will have to modify your pubcmds script rather than use another script. Find the places that check for the +o flag and change it to check for another flag like +A (or any capital letter you want). Then you need a simple auth procedure that gives the user +A when they identify.
I suppose you could keep using +o, but that means you have to take away the +o flag from all your users, since they can only get it temporarily when they identify. You probably don't want to do that.
well infact y i need so?
i have a trivia.tcl running
it runs using !start command
which is enabled for +o users only
so other users do what they cahnge into a +o user nick and quickly type :
!start and then change the nick back so they run the trivia thats it y i need such tcl to identify to bot when u enter the channel immdeitaly
any other ideas??
well infact y i need so?
i have a trivia.tcl running
it runs using !start command
which is enabled for +o users only
so other users do what they cahnge into a +o user nick and quickly type :
!start and then change the nick back so they run the trivia thats it y i need such tcl to identify to bot when u enter the channel immdeitaly
any other ideas??
It sounds like the easiest thing is to change the start command. Get rid of the public !start command and make it a message command instead. It should be like, /msg bot !start yourpassword. That way, only +o users can use it, but even then they have to supply their passwords.
well man its cool but how its not my script how to make it ask for password
i think i can cahnge
bind pub $tgflagsstart $tgcmdstart tgstart into
bind msg $tgflagsstart $tgcmdstart tgstart
nut how to ask for the password?? with the command??
That's right for the first step. Now you have to modify the tgstart procedure. First of all, the arguments change (no channel). Check tcl-commands.doc for the correct arguments. The password will be in the last argument. Read tcl-commands.doc for help on how to validate the password.
well caesar :
i just wanna this !start proc asks for password also
here is what i added :
#starts the game if it isn't running.
proc tgstart {nick uhost hand arg} {
set pass [lindex $arg 0]
if {[passwdok $handle $pass]} {
dont think it will work but hmm try to help me out
You're doing great so far. You can get rid of the lindex part, because $arg will be the password already (it's not a list). After that, try testing it.
well it is asking for the variable chan which i removed based on ur request stdragon
the error is
Tcl error [tgstart]: can't read "chan": no such variable