2000-05-02 Kevin L. Mitchell <klmitch@mit.edu>
+ * ircd/s_user.c (hunt_server): throw in a comment so I know what
+ the sendto_one is for
+
+ * include/querycmds.h (Count_unknownbecomesclient): convert to
+ sendto_opmask_butone
+
+ * ircd/send.c: start removing dead code
+
+ * include/send.h: start removing dead code
+
* ircd/m_rping.c: convert to sendcmdto_one / send_reply /
hunt_server_cmd
#
# ChangeLog for ircu2.10.11
#
-# $Id: ChangeLog,v 1.126 2000-05-02 20:09:30 kev Exp $
+# $Id: ChangeLog,v 1.127 2000-05-02 20:25:32 kev Exp $
#
# Insert new changes at beginning of the change list.
#
{ \
max_connection_count = UserStats.local_clients + UserStats.local_servers; \
if (max_connection_count % 10 == 0) \
- sendto_ops("Maximum connections: %d (%d clients)", \
+ sendto_opmask_butone(0, SNO_OLDSNO, "Maximum connections: %d (%d clients)", \
max_connection_count, max_client_count); \
} \
} while(0)
extern void sendto_channel_butserv(struct Channel *chptr, struct Client *from,
const char* fmt, ...);
extern void sendto_serv_butone(struct Client *one, const char* fmt, ...);
-extern void sendto_match_servs(struct Channel* chptr, struct Client* from,
- const char* fmt, ...);
extern void sendto_lowprot_butone(struct Client *cptr, int p,
const char* fmt, ...);
extern void sendto_highprot_butone(struct Client *cptr, int p,
extern void flush_connections(struct Client* cptr);
extern void send_queued(struct Client *to);
extern void vsendto_one(struct Client *to, const char* fmt, va_list vl);
-extern void sendto_channel_butone(struct Client *one, struct Client *from,
- struct Channel *chptr, const char* fmt, ...);
extern void sendmsgto_channel_butone(struct Client *one, struct Client *from,
struct Channel *chptr, const char *sender,
const char *cmd, const char *chname, const char *msg);
extern void sendto_common_channels(struct Client *user, const char* fmt, ...);
extern void sendto_match_butone(struct Client *one, struct Client *from,
const char *mask, int what, const char* fmt, ...);
-extern void sendto_lops_butone(struct Client *one, const char* fmt, ...);
extern void vsendto_ops(const char *pattern, va_list vl);
extern void sendto_ops_butone(struct Client *one, struct Client *from,
const char* fmt, ...);
assert(!IsServer(sptr));
/* XXX sendto_one used with explicit command; must be very careful */
- sendto_one(acptr, command, NumNick(sptr), parv[1], parv[2], parv[3], parv[4],
+ sendto_one(acptr, command, NumNick(sptr), parv[1], parv[2], parv[3], parv[4], /* XXX hunt_server */
parv[5], parv[6], parv[7], parv[8]);
return (HUNTED_PASS);
sendbufto_one(to);
}
-/* See sendcmdto_channel_butone, below */
-void sendto_channel_butone(struct Client *one, struct Client *from, struct Channel *chptr,
- const char* pattern, ...)
-{
- va_list vl;
- struct Membership* member;
- struct Client *acptr;
- int i;
-
- va_start(vl, pattern);
-
- ++sentalong_marker;
- for (member = chptr->members; member; member = member->next_member)
- {
- acptr = member->user;
- /* ...was the one I should skip */
- if (acptr->from == one || IsZombie(member) || IsDeaf(acptr))
- continue;
- if (MyConnect(acptr)) /* (It is always a client) */
- vsendto_prefix_one(acptr, from, pattern, vl);
- else if (-1 < (i = acptr->from->fd) && sentalong[i] != sentalong_marker)
- {
- sentalong[i] = sentalong_marker;
- /*
- * Don't send channel messages to links that are still eating
- * the net.burst: -- Run 2/1/1997
- */
- if (!IsBurstOrBurstAck(acptr->from))
- vsendto_prefix_one(acptr, from, pattern, vl);
- }
- }
- va_end(vl);
-}
-
/* See sendcmdto_channel_butone, below */
void sendmsgto_channel_butone(struct Client *one, struct Client *from,
struct Channel *chptr, const char *sender,
return;
}
-/*
- * sendto_lops_butone
- *
- * Send to *local* ops but one.
- */
-/* See sendto_opmask_butone, below */
-void sendto_lops_butone(struct Client* one, const char* pattern, ...)
-{
- va_list vl;
- struct Client* cptr;
- struct Client** clients = me.serv->client_list;
- int i;
- char nbuf[1024];
-
- assert(0 != clients);
-
- sprintf_irc(nbuf, ":%s NOTICE %%s :*** Notice -- ", me.name);
- va_start(vl, pattern);
- vsprintf_irc(nbuf + strlen(nbuf), pattern, vl);
- va_end(vl);
-
- for (i = 0; i <= me.serv->nn_mask; ++i) {
- if ((cptr = clients[i]) && cptr != one && SendServNotice(cptr)) {
- sprintf_irc(sendbuf, nbuf, cptr->name);
- sendbufto_one(cptr);
- }
- }
-}
-
/*
* sendto_op_mask
*