]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-mode.c
Fixed handling of already existent entries in invite and ban lists:
[ngircd-alex.git] / src / ngircd / irc-mode.c
index 28e5327e07dc36625d53ad9596b37580290c851c..fbeb3cc49a42baf9a1c3cda3f6a14710d3f8f883 100644 (file)
@@ -14,7 +14,7 @@
 
 #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>
@@ -642,7 +642,8 @@ Add_Invite( CLIENT *Prefix, CLIENT *Client, CHANNEL *Channel, CHAR *Pattern )
 
        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 */
 
@@ -658,7 +659,8 @@ Add_Ban( CLIENT *Prefix, CLIENT *Client, CHANNEL *Channel, CHAR *Pattern )
 
        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 */