]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_squit.c
s_log.* -> logger.* (s_foo looks ugly, lets try to get rid of it)
[irc/rqf/shadowircd.git] / modules / core / m_squit.c
index cf7a7616965ef0ae5db4d3aa1f1450f910967a8a..67e939e9d0ad901f616f777d3ec7368714186863 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_squit.c 698 2006-02-04 18:26:55Z jilles $
+ *  $Id: m_squit.c 3161 2007-01-25 07:23:01Z nenolod $
  */
 
 #include "stdinc.h"
@@ -31,7 +31,7 @@
 #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"
@@ -50,7 +50,7 @@ struct Message squit_msgtab = {
 
 mapi_clist_av1 squit_clist[] = { &squit_msgtab, NULL };
 
-DECLARE_MODULE_AV1(squit, NULL, NULL, squit_clist, NULL, NULL, "$Revision: 698 $");
+DECLARE_MODULE_AV1(squit, NULL, NULL, squit_clist, NULL, NULL, "$Revision: 3161 $");
 
 struct squit_parms
 {
@@ -174,7 +174,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 +186,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))
@@ -210,8 +210,8 @@ find_squit(struct Client *client_p, struct Client *source_p, const char *server)
                if(IsClient(client_p))
                {
                        if(MyClient(client_p))
-                               sendto_one(source_p, ":%s NOTICE %s :You are trying to squit me.",
-                                          me.name, client_p->name);
+                               sendto_one_notice(source_p, ":You are trying to squit me.");
+
                        return NULL;
                }
                else