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 

error and plain text with putnow

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
pinkel
Voice


Joined: 21 May 2008
Posts: 8

PostPosted: Sun May 25, 2008 8:36 am    Post subject: error and plain text with putnow Reply with quote

I am using:

tcleggdrop_mcpsfuncs.tcl
tcleggdrop_mcps_sitesettings.ini

Everyting works fine if I use putserv and putquick.

But if I use putnow I am getting this error:

Tcl error [mcpshandlepubOK]: wrong # args: should be "info nick uhost hand chan text"

and the stuff is announced in plain text.

what could be the problem?

thanks
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun May 25, 2008 11:28 am    Post subject: Re: error and plain text with putnow Reply with quote

pinkel wrote:
I am using:

tcleggdrop_mcpsfuncs.tcl
tcleggdrop_mcps_sitesettings.ini

Everyting works fine if I use putserv and putquick.

But if I use putnow I am getting this error:

Tcl error [mcpshandlepubOK]: wrong # args: should be "info nick uhost hand chan text"

and the stuff is announced in plain text.

what could be the problem?

thanks
What are you talking about?
"putnow" is not a standard eggdrop command, if you want help debugging you will need to post the procedure(s).
Back to top
View user's profile Send private message
pinkel
Voice


Joined: 21 May 2008
Posts: 8

PostPosted: Sun May 25, 2008 5:00 pm    Post subject: Reply with quote

I use this code to sent the text without buffering:

Code:

proc putnow { a } {
  append a "\n"
  putdccraw 0 [string length $a] $a
}


I replace putserv/putquick with putnow.

To encrypt the text I use:

tcleggdrop_mcpsfuncs.tcl
tcleggdrop_mcps_sitesettings.ini

If I use putserv/putquick then al the text is encrypted, if I use putnow the text is announced in just plain text.

So my question was how can I solve this?

thanks
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun May 25, 2008 5:49 pm    Post subject: Reply with quote

that error is not related to "putnow".

However, one of your scripts appears to be overwriting the TCL proc "info".

Which is the problem in your case, find out which script it is, and fix it Smile
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun May 25, 2008 11:59 pm    Post subject: Reply with quote

I doubt many here will be willing to dig up the scripts you have not posted just so they can help you.
Until you are willing to provide the information needed to fix your error(s), I suggest you use putquick so that it sends encrypted messages.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Jul 16, 2008 10:16 am    Post subject: Reply with quote

Quote:
wrong # args: should be "info nick uhost hand chan text"

My bad, appears exactly as was said is the cause. This shows clearly that a procedure called 'info' exists which expects the arguments of: nick uhost hand chan text. Meaning it is more than likely triggered by a bind.

I was a little, erm.. stoned this morning and yeah...enough about that Wink
_________________
speechles' eggdrop tcl archive


Last edited by speechles on Wed Jul 16, 2008 4:09 pm; edited 3 times in total
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Jul 16, 2008 10:28 am    Post subject: Reply with quote

Err, how does that code cause execution of [info] (and other instances of [])?
And how does the use of args alter that?

I would rather say that the error is someone creating a proc named info, which is an internal command name... As stated by Metroid earlier in this thread.
_________________
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 -> Eggdrop 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