[ScryMUD] SVN Commit Info r688 - trunk/mud/grrmud/server

scrymud at wanfear.com scrymud at wanfear.com
Thu Jul 22 03:40:04 PDT 2004


Author: eroper
Date: 2004-07-22 03:40:04 -0700 (Thu, 22 Jul 2004)
New Revision: 688

Modified:
   trunk/mud/grrmud/server/critter.cc
Log:
 Addressed the issue described below. I may decide to make it a prompt option,
 then again that might confuse some people.
 
 [998] [open] Thu Sep 30 09:57:08 1999 By Loki Room: 363
 need to make pending commands display as command1;command2;command3;etc...
 using the newline char tends to be pretty spammy...



Modified: trunk/mud/grrmud/server/critter.cc
===================================================================
--- trunk/mud/grrmud/server/critter.cc	2004-07-22 09:30:47 UTC (rev 687)
+++ trunk/mud/grrmud/server/critter.cc	2004-07-22 10:40:04 UTC (rev 688)
@@ -4314,8 +4314,23 @@
    } else {
       targ.Append("< AFK > ");
    }
-   targ.Append(pc->input);
 
+   // Instead of spamming out all the pending commands, be nice about it
+   {
+      String tmp;
+      int i;
+
+      tmp.Clear();
+      for(i=0;i<pc->input.Strlen();i++) {
+         if ( pc->input.charAt(i) == '\n' ) {
+            tmp.append(";");
+         } else {
+            tmp.append(pc->input.charAt(i));
+         } // else
+      } // for
+      targ.Append(tmp);
+   }
+
    if (! isUsingClient()) {
       targ.Append(go_ahead_str);
    }




More information about the ScryMUD mailing list