repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 8340e4267ccd2e8d0014bab36d26a162ba2877ad:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 8340e4267ccd2e8d0014bab36d26a162ba2877ad
Author: Alexander Barton 
Date:   Fri Dec 27 13:35:19 2002 +0000

    - Fixed prefix of error messages of KILL.

diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 0f24ae6e2bfa8cdf6aff8337f4e7064dd9f15014..
index ..dcaf348d6ed53f05831dc2d74045bcc9aaeb092c 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -14,7 +14,7 @@

 #include "portab.h"

-static char UNUSED id[] = "$Id: irc.c,v 1.111 2002/12/27 13:17:04 alex Exp $";
+static char UNUSED id[] = "$Id: irc.c,v 1.112 2002/12/27 13:35:19 alex Exp $";

 #include "imp.h"
 #include 
@@ -85,8 +85,8 @@ IRC_KILL( CLIENT *Client, REQUEST *Req )
 	if( c )
 	{
 		/* Yes, there is such a client -- but is it a valid user? */
-		if( Client_Type( c ) == CLIENT_SERVER ) IRC_WriteStrClient( prefix, ERR_CANTKILLSERVER_MSG, Client_ID( prefix ));
-		else if( Client_Type( c ) != CLIENT_USER  )IRC_WriteStrClient( prefix, ERR_NOPRIVILEGES_MSG, Client_ID( prefix ));
+		if( Client_Type( c ) == CLIENT_SERVER ) IRC_WriteStrClient( Client, ERR_CANTKILLSERVER_MSG, Client_ID( Client ));
+		else if( Client_Type( c ) != CLIENT_USER  )IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client ));
 		else
 		{
 			/* Kill user NOW! */

-----END OF PAGE-----