From: Samual Date: Mon, 5 Dec 2011 02:38:16 +0000 (-0500) Subject: Add status command (TODO: show more information with it) X-Git-Tag: xonotic-v0.6.0~188^2~28^2~187 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=17098e04fbed258b12524b5bf4140dc842e00f0e;p=xonotic%2Fxonotic-data.pk3dir.git Add status command (TODO: show more information with it) --- diff --git a/qcsrc/server/vote.qc b/qcsrc/server/vote.qc index 0f48ea1db..71fab623a 100644 --- a/qcsrc/server/vote.qc +++ b/qcsrc/server/vote.qc @@ -136,9 +136,9 @@ void VoteStop(entity stopper) } -// ============================================ -// Misc. supporting functions for votecommand -// ============================================ +// ====================================== +// Supporting functions for VoteCommand +// ====================================== float Votecommand_check_assignment(entity caller, float assignment) { @@ -493,7 +493,11 @@ void VoteCommand_status(float request, entity caller) // BOTH { case VC_REQUEST_COMMAND: { - + if(votecalled) + print_to(caller, strcat("^7Vote for ", votecalledvote_display, "^7 called by ^7", VoteCommand_getname(votecaller), "^7.")); + else + print_to(caller, "^1No vote called."); + return; }