r5993 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Feb 26 15:27:14 EST 2009
Author: m0rfar
Date: 2009-02-26 15:27:14 -0500 (Thu, 26 Feb 2009)
New Revision: 5993
Modified:
trunk/data/qcsrc/server/vote.qc
Log:
Changed the "See help..." messages to "See 'vhelp'..." when calling a vote fails. This is abit more userfriendly.
Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc 2009-02-26 18:51:09 UTC (rev 5992)
+++ trunk/data/qcsrc/server/vote.qc 2009-02-26 20:27:14 UTC (rev 5993)
@@ -144,11 +144,11 @@
float argc;
argc = tokenize_sane(s);
if(argv(0) == "help") {
- print_to(e, " vote COMMANDS ARGUMENTS. See 'vote help' for more info.");
+ print_to(e, " vote COMMANDS ARGUMENTS. See 'vhelp' for more info.");
return TRUE;
} else if(argv(0) == "vote") {
if(argv(1) == "") {
- print_to(e, "^1You have to supply a vote command. See help for more info.");
+ print_to(e, "^1You have to supply a vote command. 'vhelp' for more info.");
} else if(argv(1) == "help") {
VoteHelp(e);
} else if(argv(1) == "status") {
@@ -171,12 +171,12 @@
local string vote;
vote = VoteParse(s, argc);
if(vote == "") {
- print_to(e, "^1Your vote is empty. See help for more info.");
+ print_to(e, "^1Your vote is empty. See 'vhelp' for more info.");
} else if(e
&& time < e.vote_next) {
print_to(e, strcat("^1You have to wait ^2", ftos(e.vote_next - time), "^1 seconds before you can again call a vote."));
} else if(VoteCheckNasty(vote)) {
- print_to(e, "Syntax error in command. See help for more info.");
+ print_to(e, "Syntax error in command. See 'vhelp' for more info.");
} else if(RemapVote(vote, "vcall", e)) {
votecalledvote = strzone(RemapVote_vote);
votecalledvote_display = strzone(RemapVote_display);
@@ -194,7 +194,7 @@
VoteCount(); // needed if you are the only one
Nagger_VoteChanged();
} else {
- print_to(e, "^1This vote is not ok. See help for more info.");
+ print_to(e, "^1This vote is not ok. See 'vhelp' for more info.");
}
}
} else {
@@ -241,19 +241,19 @@
local string dovote;
dovote = VoteParse(s, argc);
if(dovote == "") {
- print_to(e, "^1Your command was empty. See help for more info.");
+ print_to(e, "^1Your command was empty. See 'vhelp' for more info.");
} else if(VoteCheckNasty(dovote)) {
- print_to(e, "Syntax error in command. See help for more info.");
+ print_to(e, "Syntax error in command. See 'vhelp' for more info.");
} else if(RemapVote(dovote, "vdo", e)) { // strcat seems to be necessary
bprint("\{1}^2* ^3", VoteNetname(e), "^2 used his ^3master^2 status to do \"^2", RemapVote_display, "^2\".\n");
if(cvar("sv_eventlog"))
GameLogEcho(strcat(":vote:vdo:", ftos(e.playerid), ":", RemapVote_display));
localcmd(strcat(RemapVote_vote, "\n"));
} else {
- print_to(e, "^1This command is not ok. See help for more info.");
+ print_to(e, "^1This command is not ok. See 'vhelp' for more info.");
}
} else {
- print_to(e, "^1You are NOT a master. You might need to login or vote to become master first. See help for more info.");
+ print_to(e, "^1You are NOT a master. You might need to login or vote to become master first. See 'vhelp' for more info.");
}
} else if(argv(1) == "login") {
local string masterpwd;
More information about the nexuiz-commits
mailing list