[ScryMUD] SVN Commit Info r981 - trunk/mud/grrmud/server
svn-log at scrymud.net
svn-log at scrymud.net
Tue Mar 4 12:58:13 PST 2008
Author: kaj
Date: 2008-03-04 12:58:12 -0800 (Tue, 04 Mar 2008)
New Revision: 981
Modified:
trunk/mud/grrmud/server/command4.cc
Log:
Board posts now add real world date and time to top of message. This fixes MUD-379.
Also, you can now post messages when not standing, for what it's worth.
Modified: trunk/mud/grrmud/server/command4.cc
===================================================================
--- trunk/mud/grrmud/server/command4.cc 2008-03-03 22:52:45 UTC (rev 980)
+++ trunk/mud/grrmud/server/command4.cc 2008-03-04 20:58:12 UTC (rev 981)
@@ -403,7 +403,7 @@
int post(const String* title, critter& pc) {
- if (!ok_to_do_action(NULL, "mFPSG", 0, pc, pc.getCurRoom(), NULL, TRUE)) {
+ if (!ok_to_do_action(NULL, "mFPG", 0, pc, pc.getCurRoom(), NULL, TRUE)) {
return -1;
}
@@ -435,6 +435,7 @@
int do_post(critter& pc) {
String buf = pc.pc->input.Get_Rest();
+ String buf2(100);
if (buf.Strlen() == 0) {
show("Input a line of your message or a ~ to end it.\n", pc);
@@ -514,6 +515,9 @@
return 0;
}//if
+ //add real-world time to bulletin board post
+ Sprintf(buf2, "Posted at %S:\n", &getCurTime());
+ (pc.pc->post_msg->long_desc) += buf2;
(pc.pc->post_msg->long_desc) += buf;
(pc.pc->post_msg->long_desc) += "\n";
return 0;
More information about the ScryMUD
mailing list