[Circle] [Code] ACMD(do_wiznet)

From: Ramsey Stone (ramseystone@hotmail.com)
Date: 10/07/01


Greetings CircleMUD Coders,

     Just recently I was working on a revised wiznet. I
remade the echo so it takes out the colon. Then I also added
another feature, %, which echos on wiznet. Here are bits and
pieces of it:

-- SNIP --
char emote = FALSE;
char echo = FALSE;

\FURTHER DOWN/
swith (*argument) {
case '%'
echo = TRUE;

|FURTHER DOWN|
else if (emote)
argument++
else if (echo)
argument++

\FURTHER DOWN/
if (echo == TRUE)
sprintf(buf1, "(Wiznet) %s", argument);
sprintf(buf2, "(Wiznet) %s", argument);
else
-- STANDARD --

-- SNIP --

Now the only problem is when I put * at the beginning,
instead of emoteing it echos. And when I echo it also
echos. Im not quite sure why this is. Can someone
help me?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST