mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-16 02:25:40 +00:00
- Lists_AddInvited() kann nun einen Fehler liefern.
This commit is contained in:
parent
1d524784ff
commit
81a26d988a
@ -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.5 2002/06/11 13:59:07 alex Exp $
|
* $Id: irc-op.c,v 1.6 2002/07/15 16:35:21 alex Exp $
|
||||||
*
|
*
|
||||||
* irc-op.c: Befehle zur Channel-Verwaltung
|
* irc-op.c: Befehle zur Channel-Verwaltung
|
||||||
*/
|
*/
|
||||||
@ -124,8 +124,11 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req )
|
|||||||
}
|
}
|
||||||
|
|
||||||
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( ! Lists_AddInvited( Client_Mask( target ), chan, TRUE )) return CONNECTED;
|
||||||
|
}
|
||||||
IRC_WriteStrClientPrefix( target, from, "INVITE %s %s", Req->argv[0], Req->argv[1] );
|
IRC_WriteStrClientPrefix( target, from, "INVITE %s %s", Req->argv[0], Req->argv[1] );
|
||||||
if( remember ) Lists_AddInvited( Client_Mask( target ), chan, TRUE );
|
|
||||||
|
|
||||||
if( Client_Conn( target ) > NONE )
|
if( Client_Conn( target ) > NONE )
|
||||||
{
|
{
|
||||||
|
@ -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: lists.c,v 1.3 2002/06/09 13:18:23 alex Exp $
|
* $Id: lists.c,v 1.4 2002/07/15 16:35:21 alex Exp $
|
||||||
*
|
*
|
||||||
* lists.c: Verwaltung der "IRC-Listen": Ban, Invite, ...
|
* lists.c: Verwaltung der "IRC-Listen": Ban, Invite, ...
|
||||||
*/
|
*/
|
||||||
@ -123,7 +123,7 @@ Lists_CheckInvited( CLIENT *Client, CHANNEL *Chan )
|
|||||||
} /* Lists_CheckInvited */
|
} /* Lists_CheckInvited */
|
||||||
|
|
||||||
|
|
||||||
GLOBAL VOID
|
GLOBAL BOOLEAN
|
||||||
Lists_AddInvited( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce )
|
Lists_AddInvited( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce )
|
||||||
{
|
{
|
||||||
C2C *c2c;
|
C2C *c2c;
|
||||||
@ -135,7 +135,7 @@ Lists_AddInvited( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce )
|
|||||||
if( ! c2c )
|
if( ! c2c )
|
||||||
{
|
{
|
||||||
Log( LOG_ERR, "Can't add new invite list entry!" );
|
Log( LOG_ERR, "Can't add new invite list entry!" );
|
||||||
return;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* verketten */
|
/* verketten */
|
||||||
@ -143,6 +143,7 @@ Lists_AddInvited( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce )
|
|||||||
My_Invites = c2c;
|
My_Invites = c2c;
|
||||||
|
|
||||||
Log( LOG_DEBUG, "Added \"%s\" to invite list for \"%s\".", Pattern, Channel_Name( Chan ));
|
Log( LOG_DEBUG, "Added \"%s\" to invite list for \"%s\".", Pattern, Channel_Name( Chan ));
|
||||||
|
return TRUE;
|
||||||
} /* Lists_AddInvited */
|
} /* Lists_AddInvited */
|
||||||
|
|
||||||
|
|
||||||
|
@ -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: lists.h,v 1.3 2002/06/09 13:18:40 alex Exp $
|
* $Id: lists.h,v 1.4 2002/07/15 16:35:21 alex Exp $
|
||||||
*
|
*
|
||||||
* lists.h: Verwaltung der "IRC-Listen": Ban, Invite, ... (Header)
|
* lists.h: Verwaltung der "IRC-Listen": Ban, Invite, ... (Header)
|
||||||
*/
|
*/
|
||||||
@ -23,7 +23,7 @@ GLOBAL VOID Lists_Init PARAMS(( VOID ));
|
|||||||
GLOBAL VOID Lists_Exit PARAMS(( VOID ));
|
GLOBAL VOID Lists_Exit PARAMS(( VOID ));
|
||||||
|
|
||||||
GLOBAL BOOLEAN Lists_CheckInvited PARAMS(( CLIENT *Client, CHANNEL *Chan ));
|
GLOBAL BOOLEAN Lists_CheckInvited PARAMS(( CLIENT *Client, CHANNEL *Chan ));
|
||||||
GLOBAL VOID Lists_AddInvited PARAMS(( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce ));
|
GLOBAL BOOLEAN Lists_AddInvited PARAMS(( CHAR *Pattern, CHANNEL *Chan, BOOLEAN OnlyOnce ));
|
||||||
|
|
||||||
GLOBAL BOOLEAN Lists_CheckBanned PARAMS(( CLIENT *Client, CHANNEL *Chan ));
|
GLOBAL BOOLEAN Lists_CheckBanned PARAMS(( CLIENT *Client, CHANNEL *Chan ));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user