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.

.console +d (restricted to owners)

Old posts that have not been replied to for several years.
Locked
T
TnkyWnky

.console +d (restricted to owners)

Post by TnkyWnky »

I know it can be done. I was instructed once before on how to do it. However, I guess I was simple-minded at the time as I didn't write down those instructions. =/

What I'm wondering is if anyone here might be able to tell me how to set the ".console +d" setting to owners only? Rather than to masters.

From what I can recall, it was most likely something to do with editing one of the source files. However, I can be mistaken.

So, if anybody's able to give me some assistance, it would be much appreciated.

Thanks,
TnkyWnky
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

catch {unbind dcc ot|o console *dcc:console} 
bind dcc ot|o console my:dcc:console

proc my:dcc:console {hand idx arg} {
  if {[string match -nocase "*d*" $arg] && ![matchattr $hand n]} { 
    putdcc $idx "something!" 
    return
  } 
  *dcc:console $hand $idx $arg 
  if {$arg != ""} {
    return
  } 
}
Should be working..
Once the game is over, the king and the pawn go back in the same box.
T
TnkyWnky

Post by TnkyWnky »

Erm.. for some reason, it's giving me the following error with your suggested code:

Tcl error [my:dcc:console]: invalid command name "Ã…"
T
TnkyWnky

Post by TnkyWnky »

catch {unbind dcc ot|- console *dcc:console}
bind dcc ot|o console my:dcc:console

proc my:dcc:console {hand idx arg} {
if {([string match -nocase "*d*" $arg]) && (![matchattr $hand n])} { return 1 }
*dcc:console $hand $idx $arg
}


That's what I re-adjusted it to, and it seems to be workn' fine so far.
T
TnkyWnky

Post by TnkyWnky »

It's workn' perfectly.

Thanks so much for you help. :D
Locked