about summary refs log tree commit diff
path: root/src/game/server/hooks.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 14:28:35 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 14:28:35 +0000
commit96e65f599a437dd15059f6ed533883c702917551 (patch)
tree3a8f646873aebcc9d7b462a178ec937cfd21db83 /src/game/server/hooks.cpp
parent172463b2bb49608d6b347ffbd67c0bd55ca8a692 (diff)
downloadzcatch-96e65f599a437dd15059f6ed533883c702917551.tar.gz
zcatch-96e65f599a437dd15059f6ed533883c702917551.zip
fixed so that some vote error messages isn't broadcasted to everyone
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index be68e8d9..194fa6e1 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -177,7 +177,7 @@ void mods_message(int msgtype, int client_id)
 		int64 now = time_get();
 		if(game.vote_closetime)
 		{
-			game.send_chat(-1, client_id, "Wait for current vote to end before calling a new one.");
+			game.send_chat_target(client_id, "Wait for current vote to end before calling a new one.");
 			return;
 		}
 		
@@ -186,7 +186,7 @@ void mods_message(int msgtype, int client_id)
 		{
 			char chatmsg[512] = {0};
 			str_format(chatmsg, sizeof(chatmsg), "You must wait %d seconds before making another vote", (timeleft/time_freq())+1);
-			game.send_chat(-1, client_id, chatmsg);
+			game.send_chat_target(client_id, chatmsg);
 			return;
 		}
 		
@@ -213,7 +213,7 @@ void mods_message(int msgtype, int client_id)
 			if(!option)
 			{
 				str_format(chatmsg, sizeof(chatmsg), "'%s' isn't an option on this server", msg->value);
-				game.send_chat(-1, client_id, chatmsg);
+				game.send_chat_target(client_id, chatmsg);
 				return;
 			}
 		}
@@ -221,14 +221,14 @@ void mods_message(int msgtype, int client_id)
 		{
 			if(!config.sv_vote_kick)
 			{
-				game.send_chat(-1, client_id, "Server does not allow voting to kick players");
+				game.send_chat_target(client_id, "Server does not allow voting to kick players");
 				return;
 			}
 			
 			int kick_id = atoi(msg->value);
 			if(kick_id < 0 || kick_id >= MAX_CLIENTS || !game.players[kick_id])
 			{
-				game.send_chat(-1, client_id, "Invalid client id to kick");
+				game.send_chat_target(client_id, "Invalid client id to kick");
 				return;
 			}