+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.
#
#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 */
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);
}
/*
#include "class.h"
#include "client.h"
#include "ircd.h"
+#include "ircd_reply.h"
#include "list.h"
#include "numeric.h"
#include "s_conf.h"
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)
#include "ircd_chattr.h"
#include "ircd_string.h"
#include "ircd.h"
+#include "msg.h"
#include "send.h"
#include "struct.h"
#include "support.h"
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])) {
}
}
- 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;
}
}
- 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;
}