From 17098e04fbed258b12524b5bf4140dc842e00f0e Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 4 Dec 2011 21:38:16 -0500 Subject: [PATCH] Add status command (TODO: show more information with it) --- qcsrc/server/vote.qc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; } -- 2.39.2