/*
* m_testmask.c: Shows the number of matching local and global clients
- * for a user@host mask, helpful when setting GLINE's
+ * for a user@host mask
*
* Copyright (C) 2003 by W. Campbell
* Coypright (C) 2004 ircd-ratbox development team
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: m_testmask.c 2775 2006-11-27 11:45:31Z jilles $
+ * $Id: m_testmask.c 3161 2007-01-25 07:23:01Z nenolod $
*
*/
#include "client.h"
#include "common.h" /* FALSE bleah */
#include "ircd.h"
-#include "irc_string.h"
+#include "match.h"
#include "numeric.h"
#include "s_conf.h"
-#include "s_log.h"
+#include "logger.h"
#include "s_serv.h"
#include "send.h"
#include "msg.h"
};
mapi_clist_av1 testmask_clist[] = { &testmask_msgtab, NULL };
-DECLARE_MODULE_AV1(testmask, NULL, NULL, testmask_clist, NULL, NULL, "$Revision: 2775 $");
+DECLARE_MODULE_AV1(testmask, NULL, NULL, testmask_clist, NULL, NULL, "$Revision: 3161 $");
static const char *empty_sockhost = "255.255.255.255";
static const char *spoofed_sockhost = "0";
char *name, *username, *hostname;
const char *sockhost;
char *gecos = NULL, *mangle_gecos = NULL;
- dlink_node *ptr;
+ rb_dlink_node *ptr;
name = LOCAL_COPY(parv[1]);
collapse(name);
/* username is required */
if((hostname = strchr(name, '@')) == NULL)
{
- sendto_one(source_p, ":%s NOTICE %s :Invalid parameters",
- me.name, source_p->name);
+ sendto_one_notice(source_p, ":Invalid parameters");
return 0;
}
if(EmptyString(username) || EmptyString(hostname))
{
- sendto_one(source_p, ":%s NOTICE %s :Invalid parameters",
- me.name, source_p->name);
+ sendto_one_notice(source_p, ":Invalid parameters");
return 0;
}
mangle_gecos = gecos;
}
- DLINK_FOREACH(ptr, global_client_list.head)
+ RB_DLINK_FOREACH(ptr, global_client_list.head)
{
target_p = ptr->data;