commit - cc25c5204810ec1a527b2801e517f68f832418b8
commit + 64d330b7266d9ef6d135968063e971b4dfc06367
blob - 28e5327e07dc36625d53ad9596b37580290c851c
blob + fbeb3cc49a42baf9a1c3cda3f6a14710d3f8f883
--- src/ngircd/irc-mode.c
+++ src/ngircd/irc-mode.c
#include "portab.h"
-static char UNUSED id[] = "$Id: irc-mode.c,v 1.33 2004/02/29 16:28:44 alex Exp $";
+static char UNUSED id[] = "$Id: irc-mode.c,v 1.34 2004/04/09 21:41:52 alex Exp $";
#include "imp.h"
#include <assert.h>
mask = Lists_MakeMask( Pattern );
- if( ! Lists_AddInvited( Prefix, mask, Channel, FALSE )) return CONNECTED;
+ if( ! Lists_AddInvited( mask, Channel, FALSE )) return CONNECTED;
+
return Send_ListChange( "+I", Prefix, Client, Channel, mask );
} /* Add_Invite */
mask = Lists_MakeMask( Pattern );
- if( ! Lists_AddBanned( Prefix, mask, Channel )) return CONNECTED;
+ if( ! Lists_AddBanned( mask, Channel )) return CONNECTED;
+
return Send_ListChange( "+b", Prefix, Client, Channel, mask );
} /* Add_Ban */
blob - 648da5c3c24d051961f3b39555f6bd18ff94a5af
blob + e90d07458932ea42bec7f1343581e9cc08c436f5
--- src/ngircd/irc-op.c
+++ src/ngircd/irc-op.c
#include "portab.h"
-static char UNUSED id[] = "$Id: irc-op.c,v 1.12 2003/12/05 11:57:28 alex Exp $";
+static char UNUSED id[] = "$Id: irc-op.c,v 1.13 2004/04/09 21:41:52 alex Exp $";
#include "imp.h"
#include <assert.h>
if( remember )
{
/* We must memember this invite */
- if( ! Lists_AddInvited( from, Client_Mask( target ), chan, TRUE )) return CONNECTED;
+ if( ! Lists_AddInvited( Client_Mask( target ), chan, TRUE )) return CONNECTED;
}
}
blob - a9d476753aeac68fb07e7ebbe62567271efa00cd
blob + 0f08bc61463590e532becf1a48eec335e10579af
--- src/ngircd/lists.c
+++ src/ngircd/lists.c
#include "portab.h"
-static char UNUSED id[] = "$Id: lists.c,v 1.13 2004/03/11 22:16:31 alex Exp $";
+static char UNUSED id[] = "$Id: lists.c,v 1.14 2004/04/09 21:41:52 alex Exp $";
#include "imp.h"
#include <assert.h>
GLOBAL BOOLEAN
-Lists_AddInvited( CLIENT *From, CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce )
+Lists_AddInvited( CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce )
{
C2C *c2c;
assert( Mask != NULL );
assert( Chan != NULL );
- if( Already_Registered( My_Invites, Mask, Chan ))
- {
- /* Eintrag ist bereits vorhanden */
- IRC_WriteStrClient( From, RPL_INVITELIST_MSG, Client_ID( From ), Channel_Name( Chan ), Mask );
- return FALSE;
- }
+ if( Already_Registered( My_Invites, Mask, Chan )) return TRUE;
c2c = New_C2C( Mask, Chan, OnlyOnce );
if( ! c2c )
GLOBAL BOOLEAN
-Lists_AddBanned( CLIENT *From, CHAR *Mask, CHANNEL *Chan )
+Lists_AddBanned( CHAR *Mask, CHANNEL *Chan )
{
C2C *c2c;
assert( Mask != NULL );
assert( Chan != NULL );
- if( Already_Registered( My_Bans, Mask, Chan ))
- {
- /* Eintrag ist bereits vorhanden */
- IRC_WriteStrClient( From, RPL_BANLIST_MSG, Client_ID( From ), Channel_Name( Chan ), Mask );
- return FALSE;
- }
+ if( Already_Registered( My_Bans, Mask, Chan )) return TRUE;
c2c = New_C2C( Mask, Chan, FALSE );
if( ! c2c )
blob - d71698d28f925447d81a02820e5fcb5937e431ce
blob + a1380a9fc72c7d1808eca3fdc429446a58659235
--- src/ngircd/lists.h
+++ src/ngircd/lists.h
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
*
- * $Id: lists.h,v 1.9 2002/12/12 12:23:43 alex Exp $
+ * $Id: lists.h,v 1.10 2004/04/09 21:41:52 alex Exp $
*
* Management of IRC lists: ban, invite, ... (header)
*/
GLOBAL VOID Lists_Exit PARAMS(( VOID ));
GLOBAL BOOLEAN Lists_CheckInvited PARAMS(( CLIENT *Client, CHANNEL *Chan ));
-GLOBAL BOOLEAN Lists_AddInvited PARAMS(( CLIENT *From, CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce ));
+GLOBAL BOOLEAN Lists_AddInvited PARAMS(( CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce ));
GLOBAL VOID Lists_DelInvited PARAMS(( CHAR *Mask, CHANNEL *Chan ));
GLOBAL BOOLEAN Lists_ShowInvites PARAMS(( CLIENT *Client, CHANNEL *Channel ));
GLOBAL BOOLEAN Lists_CheckBanned PARAMS(( CLIENT *Client, CHANNEL *Chan ));
-GLOBAL BOOLEAN Lists_AddBanned PARAMS(( CLIENT *From, CHAR *Mask, CHANNEL *Chan ));
+GLOBAL BOOLEAN Lists_AddBanned PARAMS(( CHAR *Mask, CHANNEL *Chan ));
GLOBAL VOID Lists_DelBanned PARAMS(( CHAR *Mask, CHANNEL *Chan ));
GLOBAL BOOLEAN Lists_ShowBans PARAMS(( CLIENT *Client, CHANNEL *Channel ));