- send_message_type(4, user, cmd->parent->bot, "$b"PACKAGE_STRING"$b (Based on srvx 1.3), Built: "__DATE__", "__TIME__".");
- send_message_type(4, user, cmd->parent->bot, "("CVS_VERSION")");
- send_message_type(4, user, cmd->parent->bot, "Copyright 2000-2005 srvx Development Team.");
- send_message_type(4, user, cmd->parent->bot, "Copyright 2004-2005 X3 Development Team.");
- send_message_type(4, user, cmd->parent->bot, "The srvx 1.3 Development Team includes Paul Chang, Adrian Dewhurst, Miles Peterson, Michael Poole and others.");
+
+ char *svn = NULL, *svnver = NULL, *svndate = NULL, *v = 0, ver[MAXLEN];
+ int vc = 0;
+
+ strcpy(ver, CVS_VERSION);
+ for (svn = x3_strtok(&v, ver, " "); svn;
+ svn = x3_strtok(&v, 0, " ")) {
+ if (vc == 2)
+ svnver = svn;
+ else if (vc == 3)
+ svndate = svn;
+ vc++;
+ }
+
+ send_message_type(4, user, cmd->parent->bot, "$b"PACKAGE_STRING"+[%s %s]$b (Based on srvx 1.3.x), Built: "__DATE__", "__TIME__".", svnver, svndate);
+ send_message_type(4, user, cmd->parent->bot, "$b$b");
+ send_message_type(4, user, cmd->parent->bot, "Copyright 2000-2006 srvx Development Team.");
+ send_message_type(4, user, cmd->parent->bot, "Copyright 2004-2006 X3 Development Team.");
+ send_message_type(4, user, cmd->parent->bot, "$b$b");
+ send_message_type(4, user, cmd->parent->bot, "The srvx 1.3.x Development Team includes Paul Chang, Adrian Dewhurst, Miles Peterson, Michael Poole and others.");