1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

- Fixed prefix of error messages of KILL.

This commit is contained in:
Alexander Barton 2002-12-27 13:35:19 +00:00
parent c9ee3ae4f0
commit 8340e4267c

View File

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