(PS Damn subject

It seems you want to find the console channel (?)Weirdo wrote:all i can find in my TCL-Commands about the console is the command console which sets their channel and modes. Thinking that i would have to find the idx of the user first. And then run another command to find what channel that idx is on. I dont think that the partyline channel thingy would work either
I had a deep look into this earlier on, most likely i have missed something.
I had thought that the Get user command might have done this, but it evidently only picks up from the userfile. Tis quite confusing
Code: Select all
bind dcc - mycommand dcc:mycommand
proc dcc:mycommand { handle idx arg } {
set channel [lindex [console $idx] 0]
putdcc $idx "Your channel: $channel"
}
A bit Weirdo indeed.Weirdo wrote:
i not sure why, might be the way i copied the code, but getting this on the script you gave me
[12:51:24] <Minako> [12:51] Tcl error [dcc:conchan]: invalid command name "Â "
Bit odd
Did you need to rewrite it? I'm curious what was the problem and how you solved it.Weirdo wrote: With a rewrite of ... [snip]
Code: Select all
bind dcc - conchan dcc:conchan
proc dcc:conchan {hand idx arg} {
global conchan
set conchan [lindex [console $idx] 0]
putdcc $idx "Your channel: $conchan"
}
Code: Select all
set conchan [lindex [console $idx] 0]