#include "portab.h"
-static char UNUSED id[] = "$Id: lists.c,v 1.20 2006/12/07 17:57:20 fw Exp $";
-
#include "imp.h"
#include <assert.h>
#include "defines.h"
#include "conn.h"
-#include "client.h"
#include "channel.h"
#include "log.h"
#include "match.h"
newelem = malloc(sizeof(struct list_elem));
if( ! newelem ) {
Log( LOG_EMERG, "Can't allocate memory for new Ban/Invite entry!" );
- return NULL;
+ return false;
}
strlcpy( newelem->mask, Mask, sizeof( newelem->mask ));
newelem->next = e;
header->first = newelem;
- LogDebug("Added \"%s\" to invite list", Mask);
return true;
}
}
-GLOBAL char *
-Lists_MakeMask( char *Pattern )
+GLOBAL const char *
+Lists_MakeMask(const char *Pattern)
{
/* This function generats a valid IRC mask of "any" string. This
* mask is only valid until the next call to Lists_MakeMask(),