]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/lists.c
- new allocated connection structures will be initialized correctly now.
[ngircd-alex.git] / src / ngircd / lists.c
index f8f29822ef22773b22e8e7efce6fb6dc71521752..e3020634e36e2c90afc529dfa3a0fa33b7aae9db 100644 (file)
@@ -2,21 +2,20 @@
  * ngIRCd -- The Next Generation IRC Daemon
  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
  *
- * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
- * der GNU General Public License (GPL), wie von der Free Software Foundation
- * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
- * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
- * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
- * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: lists.c,v 1.8 2002/09/08 17:06:07 alex Exp $
- *
- * lists.c: Verwaltung der "IRC-Listen": Ban, Invite, ...
+ * Management of IRC lists: ban, invite, ...
  */
 
 
 #include "portab.h"
 
+static char UNUSED id[] = "$Id: lists.c,v 1.10 2002/12/12 12:24:18 alex Exp $";
+
 #include "imp.h"
 #include <assert.h>
 
@@ -317,13 +316,13 @@ GLOBAL CHAR *
 Lists_MakeMask( CHAR *Pattern )
 {
        /* Hier wird aus einem "beliebigen" Pattern eine gueltige IRC-Mask erzeugt.
-       * Diese ist aber nur bis zum naechsten Aufruf von Lists_MakeMask() gueltig,
-       * da ein einziger globaler Puffer verwendet wird. ->Umkopieren!*/
+        * Diese ist aber nur bis zum naechsten Aufruf von Lists_MakeMask() gueltig,
+        * da ein einziger globaler Puffer verwendet wird. ->Umkopieren!*/
 
        STATIC CHAR TheMask[MASK_LEN];
        CHAR *excl, *at;
 
-       assert( Pattern );
+       assert( Pattern != NULL );
 
        excl = strchr( Pattern, '!' );
        at = strchr( Pattern, '@' );