Re: Chat

will guaraldi <[email protected]> Sat, 28 May 2005 09:49:39 -0500 (CDT)
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
On Sat, 28 May 2005, Discipulus wrote:

> Actually, a problem I am having, is:
> commands_dict["chat"] = {send_msg, "message"} where message is a
> string. If I type #chat Hi, how are you? it wants to break it up and
> put it in different arguements, how can I get it to put everything
> into one?

I can only guess at what you're trying to do.  Seems like you want to use 
"noparsing" and "limitparsing" flags.  I have an AIM client and it has an 
im command which takes two arguments.  The first is the name of the person 
i'm im'ming and the second is the message to send them.  The command 
syntax is like this:

commands_dict["im"] = (writeim_cmd, "name input", "noparsing limitparsing=1")

writeim_cmd is the function that does the work.
"name" and "input" are the two arguments that get created.
"noparsing" tells Lyntin not to parse it for variables and all that.
"limitparsing" tells Lyntin to stop looking for arguments at the second 
item--everything after the first argument becomes part of input.

At least, I'm pretty sure that's how it works.  I might be a bit off--I 
wrote it years ago.

/will


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005