- ein INVITE wird auch dann gespeichert (obwohl der Channel nicht +i ist), wenn der Client gebanned ist.
- den BAN-Befehl gibt es gar nicht ;-)
This commit is contained in:
parent
19ac723e48
commit
ce4b719459
|
@ -9,7 +9,7 @@
|
||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* 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
|
* irc-op.c: Befehle zur Channel-Verwaltung
|
||||||
*/
|
*/
|
||||||
|
@ -63,22 +63,6 @@ IRC_KICK( CLIENT *Client, REQUEST *Req )
|
||||||
} /* IRC_KICK */
|
} /* IRC_KICK */
|
||||||
|
|
||||||
|
|
||||||
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
|
GLOBAL BOOLEAN
|
||||||
IRC_INVITE( CLIENT *Client, REQUEST *Req )
|
IRC_INVITE( CLIENT *Client, REQUEST *Req )
|
||||||
{
|
{
|
||||||
|
@ -120,9 +104,11 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req )
|
||||||
|
|
||||||
/* Ist der Ziel-User bereits Mitglied? */
|
/* 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] );
|
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] );
|
Log( LOG_DEBUG, "User \"%s\" invites \"%s\" to \"%s\" ...", Client_Mask( from ), Req->argv[0], Req->argv[1] );
|
||||||
if( remember )
|
if( remember )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue