* 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.8 2002/09/03 23:54:59 alex Exp $
+ * $Id: irc-oper.c,v 1.10 2002/11/22 23:32:29 alex Exp $
*
* irc-oper.c: IRC-Operator-Befehle
*/
} /* IRC_DIE */
+GLOBAL BOOLEAN
+IRC_REHASH( CLIENT *Client, REQUEST *Req )
+{
+ assert( Client != NULL );
+ assert( Req != NULL );
+
+ if( Client_Type( Client ) != CLIENT_USER ) return IRC_WriteStrClient( Client, ERR_NOTREGISTERED_MSG, Client_ID( Client ));
+
+ /* Falsche Anzahl Parameter? */
+ if( Req->argc != 0 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
+
+ if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client ));
+
+ Log( LOG_NOTICE|LOG_snotice, "Got REHASH command from \"%s\", re-reading configuration ...", Client_Mask( Client ));
+ NGIRCd_Rehash( );
+
+ return CONNECTED;
+} /* IRC_REHASH */
+
+
GLOBAL BOOLEAN
IRC_RESTART( CLIENT *Client, REQUEST *Req )
{