Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Mon, 24 Apr 2000 16:34:02 +0000 (16:34 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Mon, 24 Apr 2000 16:34:02 +0000 (16:34 +0000)
Log message:

Slowly starting to switch over to new sendcmdto_* functions and of
course send_reply; so far, the changes have all been (cursorially)
tested

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@200 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/IPcheck.c
ircd/class.c
ircd/hash.c

index fd7aa277f200ec3a9e3b1045c8494603fef8c459..bea7b76476d61bbe5857675f8210e5620730cf66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-04-24  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/class.c (report_classes): use send_reply instead of
+       sendto_one
+
+       * ircd/hash.c (m_hash): replace sendto_one with sendcmdto_one
+
+       * ircd/IPcheck.c (ip_registry_connect_succeeded): replace
+       sendto_one with sendcmdto_one
+
 2000-04-21  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/send.c: clean up logic in sendcmdto_channel_butone; use
 #
 # ChangeLog for ircu2.10.11
 #
-# $Id: ChangeLog,v 1.98 2000-04-21 15:15:17 kev Exp $
+# $Id: ChangeLog,v 1.99 2000-04-24 16:34:02 kev Exp $
 #
 # Insert new changes at beginning of the change list.
 #
index fb9823899ddc8344f81de880a0037515e78632bf..5c209bec86491f4fb4a3269ee2cbd20ea83720ef 100644 (file)
@@ -24,6 +24,7 @@
 #include "ircd.h"
 #include "numnicks.h"       /* NumNick, NumServ (GODMODE) */
 #include "ircd_alloc.h"
+#include "msg.h"
 #include "s_bsd.h"          /* SetIPChecked */
 #include "s_debug.h"        /* Debug */
 #include "s_user.h"         /* TARGET_DELAY */
@@ -346,9 +347,9 @@ void ip_registry_connect_succeeded(struct Client *cptr)
     free_targets = entry->target->count;
     tr = " tr";
   }
-  sendto_one(cptr, ":%s NOTICE %s :on %u ca %u(%u) ft %u(%u)%s",
-             me.name, cptr->name, entry->connected, entry->attempts,
-             IPCHECK_CLONE_LIMIT, free_targets, STARTTARGETS, tr);
+  sendcmdto_one(&me, CMD_NOTICE, cptr, "%C :on %u ca %u(%u) ft %u(%u)%s",
+               cptr, entry->connected, entry->attempts, IPCHECK_CLONE_LIMIT,
+               free_targets, STARTTARGETS, tr);
 }
 
 /*
index 459caf0cf14ff3d7aa7ff7d66ebcdcd6a79eacbc..f2485245e42aeb972a8110379acc40442f52861c 100644 (file)
@@ -21,6 +21,7 @@
 #include "class.h"
 #include "client.h"
 #include "ircd.h"
+#include "ircd_reply.h"
 #include "list.h"
 #include "numeric.h"
 #include "s_conf.h"
@@ -198,9 +199,8 @@ void report_classes(struct Client *sptr)
   struct ConfClass *cltmp;
 
   for (cltmp = FirstClass(); cltmp; cltmp = NextClass(cltmp))
-    sendto_one(sptr, rpl_str(RPL_STATSYLINE), me.name, sptr->name,
-        'Y', ConClass(cltmp), PingFreq(cltmp), ConFreq(cltmp),
-        MaxLinks(cltmp), MaxSendq(cltmp));
+    send_reply(sptr, RPL_STATSYLINE, 'Y', ConClass(cltmp), PingFreq(cltmp),
+              ConFreq(cltmp), MaxLinks(cltmp), MaxSendq(cltmp));
 }
 
 unsigned int get_sendq(struct Client *cptr)
index 1e25937d38ddde55457d901d622d8c4b78b4812b..af016003b4a94bbf6ac6416ff574c87bd1e8a176 100644 (file)
@@ -27,6 +27,7 @@
 #include "ircd_chattr.h"
 #include "ircd_string.h"
 #include "ircd.h"
+#include "msg.h"
 #include "send.h"
 #include "struct.h"
 #include "support.h"
@@ -456,7 +457,7 @@ int m_hash(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
   struct Channel* ch;
   int i;
   
-  sendto_one(sptr, "NOTICE %s :Hash Table Statistics", parv[0]);
+  sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :Hash Table Statistics", sptr);
 
   for (i = 0; i < HASHSIZE; ++i) {
     if ((cl = clientTable[i])) {
@@ -470,8 +471,8 @@ int m_hash(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     }
   } 
 
-  sendto_one(sptr, "NOTICE %s :Client: entries: %d buckets: %d max chain: %d",
-             parv[0], count, buckets, max_chain);
+  sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :Client: entries: %d buckets: %d "
+               "max chain: %d", sptr, count, buckets, max_chain);
 
   buckets = 0;
   count   = 0;
@@ -489,8 +490,8 @@ int m_hash(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     }
   } 
 
-  sendto_one(sptr, "NOTICE %s :Channel: entries: %d buckets: %d max chain: %d",
-             parv[0], count, buckets, max_chain);
+  sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :Channel: entries: %d buckets: %d "
+               "max chain: %d", sptr, count, buckets, max_chain);
   return 0;
 }