2000-04-28 Kevin L. Mitchell <klmitch@mit.edu>
+ * include/ircd_reply.h (SND_EXPLICIT): use instead of RPL_EXPLICIT
+
+ * ircd/ircd_reply.c (send_reply): use SND_EXPLICIT instead of
+ RPL_EXPLICIT
+
+ * ircd/m_userhost.c (m_userhost): add a dead code comment
+
+ * ircd/m_desynch.c: forgot one...
+
+ * ircd/m_rehash.c (mo_rehash): er, duplicates :)
+
+ * ircd/m_proto.c (proto_send_supported): just change a comment so
+ it doesn't show up in my scans
+
* ircd/ircd_reply.c (send_reply): fix a slight bug...
* ircd/s_numeric.c (do_numeric): use new sendcmdto_* functions,
#
# ChangeLog for ircu2.10.11
#
-# $Id: ChangeLog,v 1.111 2000-04-28 16:16:06 kev Exp $
+# $Id: ChangeLog,v 1.112 2000-04-28 17:34:44 kev Exp $
#
# Insert new changes at beginning of the change list.
#
extern int send_reply(struct Client *to, int reply, ...);
extern int send_admin_info(struct Client* sptr, const struct ConfItem* data);
-#define RPL_EXPLICIT 0x40000000 /* first arg is a pattern to use */
+#define SND_EXPLICIT 0x40000000 /* first arg is a pattern to use */
#endif /* INCLUDED_ircd_reply_h */
(!acptr->user->username ||
match(gline->gl_user, acptr->user->username) == 0)) {
/* ok, here's one that got G-lined */
- send_reply(acptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s",
+ send_reply(acptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s",
gline->gl_reason);
/* let the ops know about it */
* nospoof PONG.
*/
if (*cptr->name && cptr->user && *cptr->user->username) {
- send_reply(cptr, RPL_EXPLICIT | ERR_BADPING,
+ send_reply(cptr, SND_EXPLICIT | ERR_BADPING,
":Your client may not be compatible with this server.");
- send_reply(cptr, RPL_EXPLICIT | ERR_BADPING,
+ send_reply(cptr, SND_EXPLICIT | ERR_BADPING,
":Compatible clients are available at "
"ftp://ftp.undernet.org/pub/irc/clients");
}
* nickname addressed?
*/
if (0 == (acptr = findNUser(name)) || !IsUser(acptr)) {
- send_reply(sptr, RPL_EXPLICIT | ERR_NOSUCHNICK, "* :Target left UnderNet. "
+ send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHNICK, "* :Target left UnderNet. "
"Failed to deliver: [%.20s]", text);
return;
}
assert(0 != to);
assert(0 != reply);
- num = get_error_numeric(reply & ~RPL_EXPLICIT); /* get reply... */
+ num = get_error_numeric(reply & ~SND_EXPLICIT); /* get reply... */
va_start(vd.vd_args, reply);
- if (reply & RPL_EXPLICIT) /* get right pattern */
+ if (reply & SND_EXPLICIT) /* get right pattern */
vd.vd_format = (const char *) va_arg(vd.vd_args, char *);
else
vd.vd_format = num->format;
{
int inuse = 0, mem = 0, tmp = 0;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Local: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Local: inuse: %d(%d)",
inuse += cloc.inuse, tmp = cloc.inuse * CLIENT_LOCAL_SIZE);
mem += tmp;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Remote: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Remote: inuse: %d(%d)",
crem.inuse, tmp = crem.inuse * CLIENT_REMOTE_SIZE);
mem += tmp;
inuse += crem.inuse;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Users: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Users: inuse: %d(%d)",
users.inuse, tmp = users.inuse * sizeof(struct User));
mem += tmp;
inuse += users.inuse;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Servs: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Servs: inuse: %d(%d)",
servs.inuse, tmp = servs.inuse * sizeof(struct Server));
mem += tmp;
inuse += servs.inuse;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Links: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Links: inuse: %d(%d)",
links.inuse, tmp = links.inuse * sizeof(struct SLink));
mem += tmp;
inuse += links.inuse;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Classes: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Classes: inuse: %d(%d)",
classs.inuse, tmp = classs.inuse * sizeof(struct ConfClass));
mem += tmp;
inuse += classs.inuse;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Confs: inuse: %d(%d)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Confs: inuse: %d(%d)",
GlobalConfCount, tmp = GlobalConfCount * sizeof(struct ConfItem));
mem += tmp;
inuse += GlobalConfCount;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Totals: inuse %d %d",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Totals: inuse %d %d",
inuse, mem);
}
int m_unregistered(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
- send_reply(cptr, RPL_EXPLICIT | ERR_NOTREGISTERED, "%s :Register first.",
+ send_reply(cptr, SND_EXPLICIT | ERR_NOTREGISTERED, "%s :Register first.",
parv[0]);
return 0;
}
int m_unsupported(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
#if 0
- send_reply(cptr, RPL_EXPLICIT | ERR_UNSUPPORTED, "%s :Unsupported command",
+ send_reply(cptr, SND_EXPLICIT | ERR_UNSUPPORTED, "%s :Unsupported command",
parv[0]);
#endif
return 0;
#include "ircd.h"
#include "ircd_reply.h"
#include "ircd_string.h"
+#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
#include "s_bsd.h"
int ms_desynch(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
if (IsServer(sptr) && parc >= 2)
- {
- int i;
- struct Client *acptr;
- /* Send message to local +g clients as if it were a wallops */
- sprintf_irc(sendbuf, ":%s WALLOPS :%s", parv[0], parv[parc - 1]);
- for (i = 0; i <= HighestFd; i++)
- if ((acptr = LocalClientArray[i]) && !IsServer(acptr) && !IsMe(acptr) &&
- SendDebug(acptr))
- sendbufto_one(acptr);
- /* Send message to remote +g clients */
- sendto_g_serv_butone(cptr, "%s DESYNCH :%s", NumServ(sptr), parv[parc - 1]);
- }
+ sendcmdto_flag_butone(sptr, CMD_DESYNCH, cptr, FLAGS_DEBUG, ":%s",
+ parv[parc - 1]);
+
return 0;
}
for (i = 0; i <= HighestFd; i++)
if ((acptr = LocalClientArray[i]) && !IsServer(acptr) && !IsMe(acptr) &&
SendDebug(acptr))
- sendbufto_one(acptr);
+ sendbufto_one(acptr); /* XXX DEAD */
/* Send message to remote +g clients */
- sendto_g_serv_butone(cptr, "%s DESYNCH :%s", NumServ(sptr), parv[parc - 1]);
+ sendto_g_serv_butone(cptr, "%s DESYNCH :%s", NumServ(sptr), parv[parc - 1]); /* XXX DEAD */
}
return 0;
}
send_reply(sptr, RPL_INFO, *text++);
send_reply(sptr, RPL_INFO, "");
}
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
creation, generation);
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":On-line since %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
myctime(me.firsttime));
send_reply(sptr, RPL_ENDOFINFO);
}
send_reply(sptr, RPL_INFO, *text++);
send_reply(sptr, RPL_INFO, "");
}
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
creation, generation);
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":On-line since %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
myctime(me.firsttime));
send_reply(sptr, RPL_ENDOFINFO);
}
send_reply(sptr, RPL_INFO, *text++);
send_reply(sptr, RPL_INFO, "");
}
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
creation, generation);
- send_reply(sptr, RPL_EXPLICIT | RPL_INFO, ":On-line since %s",
+ send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
myctime(me.firsttime));
send_reply(sptr, RPL_ENDOFINFO);
}
if (tm) /* Not remote? */
{
send_reply(sptr, RPL_MOTDSTART, me.name);
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, "- %d/%d/%d %d:%02d",
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, "- %d/%d/%d %d:%02d",
tm->tm_mday, tm->tm_mon + 1, 1900 + tm->tm_year, tm->tm_hour,
tm->tm_min);
count = 100;
else
{
send_reply(sptr, RPL_MOTDSTART, me.name);
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, ":\ 2Type /MOTD to read the "
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, ":\ 2Type /MOTD to read the "
"AUP before continuing using this service.\ 2");
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, ":The message of the day was "
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, ":The message of the day was "
"last changed: %d/%d/%d", tm->tm_mday, tm->tm_mon + 1,
1900 + tm->tm_year);
}
if (tm) /* Not remote? */
{
send_reply(sptr, RPL_MOTDSTART, me.name);
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, ":- %d/%d/%d %d:%02d",
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, ":- %d/%d/%d %d:%02d",
tm->tm_mday, tm->tm_mon + 1, 1900 + tm->tm_year, tm->tm_hour,
tm->tm_min);
count = 100;
else
{
send_reply(sptr, RPL_MOTDSTART, me.name);
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, ":\ 2Type /MOTD to read the "
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, ":\ 2Type /MOTD to read the "
"AUP before continuing using this service.\ 2");
- send_reply(sptr, RPL_EXPLICIT | RPL_MOTD, ":The message of the day was "
+ send_reply(sptr, SND_EXPLICIT | RPL_MOTD, ":The message of the day was "
"last changed: %d/%d/%d", tm->tm_mday, tm->tm_mon + 1,
1900 + tm->tm_year);
}
return register_user(cptr, sptr, sptr->name, sptr->user->username);
}
else
- send_reply(sptr, RPL_EXPLICIT | ERR_BADPING,
+ send_reply(sptr, SND_EXPLICIT | ERR_BADPING,
":To connect, type /QUOTE PONG %u", sptr->cookie);
}
return 0;
int proto_send_supported(struct Client* cptr)
{
/*
- * sendto_one(cptr, RPL_PROTOLIST, me.name, cptr->name, "stuff");
+ * send_reply(cptr, RPL_PROTOLIST, "stuff");
*/
return 0;
}
#endif
{
send_reply(sptr, ERR_NOPRIVILEGES);
- sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
return 0;
}
send_reply(sptr, RPL_REHASHING, configfile);
else
{
if (i < j)
- sendbufto_one(sptr);
+ sendbufto_one(sptr); /* XXX DEAD */
sendto_one(sptr, err_str(ERR_NOSUCHNICK), me.name, parv[0], s); /* XXX DEAD */
sbuf = sprintf_irc(sendbuf, rpl_str(RPL_USERHOST), me.name, parv[0]);
j = i - 1;
{
if (len + strlen(chptr->chname) + mlen > BUFSIZE - 5)
{
- send_reply(sptr, RPL_EXPLICIT | RPL_WHOISCHANNELS,
+ send_reply(sptr, SND_EXPLICIT | RPL_WHOISCHANNELS,
"%s :%s", name, buf);
*buf = '\0';
len = 0;
{
if (len + strlen(chptr->chname) + mlen > BUFSIZE - 5)
{
- send_reply(sptr, RPL_EXPLICIT | RPL_WHOISCHANNELS,
+ send_reply(sptr, SND_EXPLICIT | RPL_WHOISCHANNELS,
"%s :%s", name, buf);
*buf = '\0';
len = 0;
{
if (len + strlen(chptr->chname) + mlen > BUFSIZE - 5)
{
- send_reply(sptr, RPL_EXPLICIT | RPL_WHOISCHANNELS,
+ send_reply(sptr, SND_EXPLICIT | RPL_WHOISCHANNELS,
"%s :%s", name, buf);
*buf = '\0';
len = 0;
}
if (cachedCount != cache_count) {
- send_reply(sptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(sptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Resolver: cache count mismatch: %d != %d", cachedCount,
cache_count);
assert(cachedCount == cache_count);
}
- send_reply(sptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(sptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Resolver: cache %d(%d) requests %d(%d)", cache_count,
cache_mem, request_count, request_mem);
return cache_mem + request_mem;
if (NULL == (file = fbopen(filename, "r"))) {
send_reply(sptr, ERR_NOMOTD);
- send_reply(sptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(sptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
return;
}
*tmp = '\0';
send_reply(sptr, RPL_MOTD, line);
}
- send_reply(sptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(sptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
fbclose(file);
}
}
}
if (reply[0])
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, reply);
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, reply);
else if (tmp) {
if (EmptyString(tmp->passwd))
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP,
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP,
":Connection from your host is refused on this server.");
else {
if (*tmp->passwd == '"') {
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%*s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%*s.",
strlen(tmp->passwd + 1) - 1, tmp->passwd + 1);
}
else if (*tmp->passwd == '!')
#ifdef COMMENT_IS_FILE
killcomment(cptr, cptr->name, tmp->passwd);
#else
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
tmp->passwd);
#endif
}
/* find active glines */
/* added a check against the user's IP address to find_gline() -Kev */
else if ((agline = gline_lookup(cptr)) && GlineIsActive(agline))
- send_reply(cptr, RPL_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
+ send_reply(cptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":%s.",
GlineReason(agline));
else
agline = NULL; /* if a gline was found, it was inactive */
static void debug_enumerator(struct Client* cptr, const char* msg)
{
assert(0 != cptr);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":%s", msg);
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":%s", msg);
}
/*
{
os_get_rusage(cptr, CurrentTime - me.since, debug_enumerator);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":DBUF alloc %d used %d",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":DBUF alloc %d used %d",
DBufAllocCount, DBufUsedCount);
}
#endif /* DEBUGMODE */
for (cltmp = classes; cltmp; cltmp = cltmp->next)
cl++;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Client Local %d(%zu) Remote %d(%zu)", lc, lcm, rc, rcm);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Users %d(%zu) Invites %d(%zu)", us, us * sizeof(struct User),
usi, usi * sizeof(struct SLink));
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":User channels %d(%zu) Aways %d(%zu)", memberships,
memberships * sizeof(struct Membership), aw, awm);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Attached confs %d(%zu)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Attached confs %d(%zu)",
lcc, lcc * sizeof(struct SLink));
totcl = lcm + rcm + us * sizeof(struct User) + memberships * sizeof(struct Membership) + awm;
totcl += lcc * sizeof(struct SLink) + usi * sizeof(struct SLink);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Conflines %d(%zu)", co,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Conflines %d(%zu)", co,
com);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Classes %d(%zu)", cl,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Classes %d(%zu)", cl,
cl * sizeof(struct ConfClass));
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Channels %d(%zu) Bans %d(%zu)", ch, chm, chb, chbm);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Channel membrs %d(%zu) invite %d(%zu)", memberships,
memberships * sizeof(struct Membership), chi,
chi * sizeof(struct SLink));
totch = chm + chbm + chi * sizeof(struct SLink);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Whowas users %d(%zu) away %d(%zu)", wwu,
wwu * sizeof(struct User), wwa, wwam);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Whowas array %d(%zu)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Whowas array %d(%zu)",
NICKNAMEHISTORYLENGTH, wwm);
totww = wwu * sizeof(struct User) + wwam + wwm;
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Hash: client %d(%zu), chan is the same", HASHSIZE,
sizeof(void *) * HASHSIZE);
* are sent.
*/
dbuf_count_memory(&dbufs_allocated, &dbufs_used);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":DBufs allocated %d(%zu) used %d(%zu)", DBufAllocCount,
dbufs_allocated, DBufUsedCount, dbufs_used);
tot += sizeof(void *) * HASHSIZE * 3;
#if !defined(NDEBUG)
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Allocations: %zu(%zu)",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Allocations: %zu(%zu)",
fda_get_block_count(), fda_get_byte_count());
#endif
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Total: ww %zu ch %zu cl %zu co %zu db %zu", totww, totch,
totcl, com, dbufs_allocated);
}
sp->is_ni++;
}
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":accepts %u refused %u",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":accepts %u refused %u",
sp->is_ac, sp->is_ref);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":unknown commands %u prefixes %u", sp->is_unco, sp->is_unpf);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":nick collisions %u unknown closes %u", sp->is_kill, sp->is_ni);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":wrong direction %u empty %u", sp->is_wrdi, sp->is_empt);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":numerics seen %u mode fakes %u", sp->is_num, sp->is_fake);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG,
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":auth successes %u fails %u", sp->is_asuc, sp->is_abad);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":local connections %u",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":local connections %u",
sp->is_loc);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":Client server");
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":connected %u %u",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Client server");
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":connected %u %u",
sp->is_cl, sp->is_sv);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":bytes sent %u.%uK %u.%uK",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":bytes sent %u.%uK %u.%uK",
sp->is_cks, sp->is_cbs, sp->is_sks, sp->is_sbs);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":bytes recv %u.%uK %u.%uK",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":bytes recv %u.%uK %u.%uK",
sp->is_ckr, sp->is_cbr, sp->is_skr, sp->is_sbr);
- send_reply(cptr, RPL_EXPLICIT | RPL_STATSDEBUG, ":time connected %Tu %Tu",
+ send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":time connected %Tu %Tu",
sp->is_cti, sp->is_sti);
}
{
ServerStats->is_ref++;
- send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+ send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
":Your username is invalid.");
- send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+ send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
":Connect with your real username, in lowercase.");
- send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+ send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
":If your mail address were foo@bar.com, your username "
"would be foo.");
return exit_client(cptr, sptr, &me, "USER: Bad username");