X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/5366977b4f3c7a50d170bf7a1e29b14c74944db7..1c646b89143ba1a86ab8e4b86efd38dc150c22ec:/modules/core/m_squit.c diff --git a/modules/core/m_squit.c b/modules/core/m_squit.c index 7840c4b..587b851 100644 --- a/modules/core/m_squit.c +++ b/modules/core/m_squit.c @@ -27,11 +27,11 @@ #include "stdinc.h" #include "client.h" #include "common.h" /* FALSE bleah */ -#include "irc_string.h" +#include "match.h" #include "ircd.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" @@ -64,7 +64,6 @@ static struct squit_parms *find_squit(struct Client *client_p, /* * mo_squit - SQUIT message handler - * parv[0] = sender prefix * parv[1] = server name * parv[2] = comment */ @@ -106,7 +105,6 @@ mo_squit(struct Client *client_p, struct Client *source_p, int parc, const char /* * ms_squit - SQUIT message handler - * parv[0] = sender prefix * parv[1] = server name * parv[2] = comment */ @@ -148,12 +146,7 @@ ms_squit(struct Client *client_p, struct Client *source_p, int parc, const char ":%s WALLOPS :Remote SQUIT %s from %s (%s)", me.id, target_p->name, source_p->name, comment); - sendto_server(NULL, NULL, NOCAPS, CAP_TS6, - ":%s WALLOPS :Remote SQUIT %s from %s (%s)", - me.name, target_p->name, source_p->name, comment); - - ilog(L_SERVER, "SQUIT From %s : %s (%s)", parv[0], target_p->name, comment); - + ilog(L_SERVER, "SQUIT From %s : %s (%s)", source_p->name, target_p->name, comment); } exit_client(client_p, target_p, source_p, comment); return 0; @@ -174,7 +167,7 @@ find_squit(struct Client *client_p, struct Client *source_p, const char *server) static struct squit_parms found_squit; struct Client *target_p = NULL; struct Client *p; - dlink_node *ptr; + rb_dlink_node *ptr; /* must ALWAYS be reset */ found_squit.target_p = NULL; @@ -186,7 +179,7 @@ find_squit(struct Client *client_p, struct Client *source_p, const char *server) ** when the command is issued by an oper. */ - DLINK_FOREACH(ptr, global_serv_list.head) + RB_DLINK_FOREACH(ptr, global_serv_list.head) { p = ptr->data; if(IsServer(p) || IsMe(p))