X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..d3455e2c7e2f9040e1b7628d9cf52b26a24dcefc:/modules/m_testmask.c diff --git a/modules/m_testmask.c b/modules/m_testmask.c index 2fa4eea..c586e3f 100644 --- a/modules/m_testmask.c +++ b/modules/m_testmask.c @@ -29,7 +29,7 @@ * 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 $ * */ @@ -41,7 +41,7 @@ #include "irc_string.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" @@ -57,7 +57,7 @@ struct Message testmask_msgtab = { }; 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"; @@ -72,7 +72,7 @@ mo_testmask(struct Client *client_p, struct Client *source_p, 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); @@ -80,8 +80,7 @@ mo_testmask(struct Client *client_p, struct Client *source_p, /* 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; } @@ -98,8 +97,7 @@ mo_testmask(struct Client *client_p, struct Client *source_p, 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; } @@ -141,7 +139,7 @@ mo_testmask(struct Client *client_p, struct Client *source_p, mangle_gecos = gecos; } - DLINK_FOREACH(ptr, global_client_list.head) + RB_DLINK_FOREACH(ptr, global_client_list.head) { target_p = ptr->data;