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.

putdccraw is deprecated. Please use putdcc/putnow instead.

Help for those learning Tcl or writing their own scripts.
Post Reply
C
COBRa
Halfop
Posts: 49
Joined: Fri Jan 04, 2013 8:23 am

putdccraw is deprecated. Please use putdcc/putnow instead.

Post by COBRa »

hi im getting tht error in my tcl i think its this proc thts causing it any help would be appreciated

Code: Select all

proc putnow {a {options "0"}} {
append a "\n"
putdccraw 0 [string length $a] $a
}
rename putserv ""
rename putquick ""
rename puthelp ""
proc putserv {text {options "0"}} {
  putnow $text
}
proc putquick {text {options "0"}} {
  putnow $text
}
proc puthelp {text {options "0"}} {
  putnow $text
}
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Just try that code without the putnow proc...

Code: Select all

proc putnow {a {options "0"}} { 
append a "\n" 
putdccraw 0 [string length $a] $a 
} 
and run the code looking more like this...

Code: Select all

rename putserv "" 
rename putquick "" 
rename puthelp "" 
proc putserv {text {options "0"}} { 
  putnow $text 
} 
proc putquick {text {options "0"}} { 
  putnow $text 
} 
proc puthelp {text {options "0"}} { 
  putnow $text 
}

SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I'd suggest removing all that code alltogether...
Those queue-commands do exist for a reason. If you really want to spew out text unthrottled, you should use the putnow command in the first place...
NML_375
Post Reply