X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-oper.c;h=b58d16fb253ac1384a9a8c46e0ca9375d4ca56cd;hb=8430c55733daf6ba50307fa03ab673222c3e14a8;hp=d71bcaaf6ccccef7b7f34ee85586364d6ffd1020;hpb=2ee05c9a6856d78f996dfbc991452e4cc1c58c37;p=ngircd-alex.git diff --git a/src/ngircd/irc-oper.c b/src/ngircd/irc-oper.c index d71bcaaf..b58d16fb 100644 --- a/src/ngircd/irc-oper.c +++ b/src/ngircd/irc-oper.c @@ -9,22 +9,17 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: irc-oper.c,v 1.1 2002/03/03 17:15:11 alex Exp $ + * $Id: irc-oper.c,v 1.4 2002/04/04 13:03:39 alex Exp $ * * irc-oper.c: IRC-Operator-Befehle - * - * $Log: irc-oper.c,v $ - * Revision 1.1 2002/03/03 17:15:11 alex - * - Source in weitere Module fuer IRC-Befehle aufgesplitted. - * */ -#include -#include "global.h" +#include "portab.h" -#include +#include "imp.h" #include +#include #include "ngircd.h" #include "conf.h" @@ -74,7 +69,7 @@ GLOBAL BOOLEAN IRC_OPER( CLIENT *Client, REQUEST *Req ) IRC_WriteStrServersPrefix( NULL, Client, "MODE %s :+o", Client_ID( Client )); } - if( ! Client_OperByMe( Client )) Log( LOG_NOTICE, "Got valid OPER from \"%s\", user is an IRC operator now.", Client_Mask( Client )); + if( ! Client_OperByMe( Client )) Log( LOG_NOTICE|LOG_snotice, "Got valid OPER from \"%s\", user is an IRC operator now.", Client_Mask( Client )); Client_SetOperByMe( Client, TRUE ); return IRC_WriteStrClient( Client, RPL_YOUREOPER_MSG, Client_ID( Client )); @@ -93,7 +88,7 @@ GLOBAL BOOLEAN IRC_DIE( CLIENT *Client, REQUEST *Req ) if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); - Log( LOG_NOTICE, "Got DIE command from \"%s\", going down!", Client_Mask( Client )); + Log( LOG_NOTICE|LOG_snotice, "Got DIE command from \"%s\", going down!", Client_Mask( Client )); NGIRCd_Quit = TRUE; return CONNECTED; } /* IRC_DIE */ @@ -111,7 +106,7 @@ GLOBAL BOOLEAN IRC_RESTART( CLIENT *Client, REQUEST *Req ) if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); - Log( LOG_NOTICE, "Got RESTART command from \"%s\", going down!", Client_Mask( Client )); + Log( LOG_NOTICE|LOG_snotice, "Got RESTART command from \"%s\", going down!", Client_Mask( Client )); NGIRCd_Restart = TRUE; return CONNECTED; } /* IRC_RESTART */