egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

putdccraw is deprecated. Please use putdcc/putnow instead.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
COBRa
Halfop


Joined: 04 Jan 2013
Posts: 49

PostPosted: Fri Apr 04, 2014 4:25 pm    Post subject: putdccraw is deprecated. Please use putdcc/putnow instead. Reply with quote

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

Code:
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
}
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Fri Apr 04, 2014 9:28 pm    Post subject: Reply with quote

Just try that code without the putnow proc...
Code:
proc putnow {a {options "0"}} {
append a "\n"
putdccraw 0 [string length $a] $a
}


and run the code looking more like this...
Code:

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
.
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Apr 05, 2014 5:59 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber