commit - 19ac723e480356fde9b35c082f77e53cb1f8991a
commit + ce4b71945993f6db1ac1e91bf18116c6d16e24a7
blob - 83f8aad42f081aa19ba5226daaea5a9fea2376ab
blob + d8d70c5f15ce13bed40ca3f465e55a77955fa5d0
--- src/ngircd/irc-op.c
+++ src/ngircd/irc-op.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: irc-op.c,v 1.7 2002/07/25 11:36:16 alex Exp $
+ * $Id: irc-op.c,v 1.8 2002/09/08 00:52:39 alex Exp $
*
* irc-op.c: Befehle zur Channel-Verwaltung
*/
GLOBAL BOOLEAN
-IRC_BAN( CLIENT *Client, REQUEST *Req )
-{
- assert( Client != NULL );
- assert( Req != NULL );
-
- /* Valider Client? */
- if(( Client_Type( Client ) != CLIENT_USER ) && ( Client_Type( Client ) != CLIENT_SERVER )) return IRC_WriteStrClient( Client, ERR_NOTREGISTERED_MSG, Client_ID( Client ));
-
- /* Keine Parameter? */
- if( Req->argc < 1 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
-
- return CONNECTED;
-} /* IRC_BAN */
-
-
-GLOBAL BOOLEAN
IRC_INVITE( CLIENT *Client, REQUEST *Req )
{
CHANNEL *chan;
/* Ist der Ziel-User bereits Mitglied? */
if( Channel_IsMemberOf( chan, target )) return IRC_WriteStrClient( from, ERR_USERONCHANNEL_MSG, Client_ID( from ), Req->argv[0], Req->argv[1] );
-
}
+ /* Wenn der User gebanned ist, so muss das Invite auch gespeichert werden */
+ if( Lists_CheckBanned( target, chan )) remember = TRUE;
+
Log( LOG_DEBUG, "User \"%s\" invites \"%s\" to \"%s\" ...", Client_Mask( from ), Req->argv[0], Req->argv[1] );
if( remember )
{