]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add status command (TODO: show more information with it)
authorSamual <samual@xonotic.org>
Mon, 5 Dec 2011 02:38:16 +0000 (21:38 -0500)
committerSamual <samual@xonotic.org>
Mon, 5 Dec 2011 02:38:16 +0000 (21:38 -0500)
qcsrc/server/vote.qc

index 0f48ea1db0f83d74230394a5be5433f3809a49c3..71fab623ab130d24b9d38b8aff05e531fb03c50f 100644 (file)
@@ -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;
                }