diff options
Diffstat (limited to 'src/game/server/hooks.cpp')
| -rw-r--r-- | src/game/server/hooks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp index 3a034a97..0f3008ce 100644 --- a/src/game/server/hooks.cpp +++ b/src/game/server/hooks.cpp @@ -149,8 +149,12 @@ void mods_message(int msgtype, int client_id) } else if(msgtype == NETMSGTYPE_CL_VOTE) { + if(!game.vote_closetime) + return; + NETMSG_CL_VOTE *msg = (NETMSG_CL_VOTE *)rawmsg; p->vote = msg->vote; + dbg_msg("", "%d voted %d", client_id, msg->vote); game.send_vote_status(-1); } else if (msgtype == NETMSGTYPE_CL_SETTEAM) |