summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-03-31 14:06:08 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-03-31 14:06:08 +0000
commitd9ffa61844e2e8f8dd1790c2810039f438b8a994 (patch)
tree93327d7c07d0a6303bd6fba48ebcd24f411f4c2f
parent797277f9afab01fa2581f1865bfe7052d9d3e36c (diff)
- Replaced all occurrences of ircsprintf with sprintf/snprintf
and killed sprintf_irc.(c|h) git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1793 82007160-df01-0410-b94d-b575c5fd34c7
-rwxr-xr-xconfigure2
-rw-r--r--include/sprintf_irc.h39
-rw-r--r--modules/core/m_join.c7
-rw-r--r--modules/core/m_kill.c1
-rw-r--r--modules/core/m_mode.c7
-rw-r--r--modules/core/m_sjoin.c55
-rw-r--r--modules/m_accept.c7
-rw-r--r--modules/m_dline.c1
-rw-r--r--modules/m_encap.c1
-rw-r--r--modules/m_gline.c1
-rw-r--r--modules/m_ison.c1
-rw-r--r--modules/m_kline.c1
-rw-r--r--modules/m_knock.c1
-rw-r--r--modules/m_map.c5
-rw-r--r--modules/m_names.c1
-rw-r--r--modules/m_topic.c1
-rw-r--r--modules/m_userhost.c29
-rw-r--r--modules/m_watch.c1
-rw-r--r--modules/m_who.c1
-rw-r--r--modules/m_whois.c3
-rw-r--r--modules/m_xline.c1
-rw-r--r--src/Makefile.am1
-rw-r--r--src/Makefile.in6
-rw-r--r--src/channel.c31
-rw-r--r--src/channel_mode.c45
-rw-r--r--src/conf_parser.c803
-rw-r--r--src/conf_parser.h2
-rw-r--r--src/conf_parser.y1
-rw-r--r--src/irc_res.c1
-rw-r--r--src/irc_string.c1
-rw-r--r--src/listener.c1
-rw-r--r--src/motd.c15
-rw-r--r--src/parse.c1
-rw-r--r--src/s_misc.c1
-rw-r--r--src/s_serv.c7
-rw-r--r--src/s_user.c7
-rw-r--r--src/send.c43
-rw-r--r--src/sprintf_irc.c472
38 files changed, 529 insertions, 1075 deletions
diff --git a/configure b/configure
index 34beb7d..8ec9777 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Id: configure.ac 1720 2012-12-28 21:06:21Z michael .
+# From configure.ac Id: configure.ac 1751 2013-01-16 18:30:52Z michael .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
#
diff --git a/include/sprintf_irc.h b/include/sprintf_irc.h
deleted file mode 100644
index 641c636..0000000
--- a/include/sprintf_irc.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
- * sprintf_irc.h: The irc sprintf header.
- *
- * Copyright (C) 2002 by the past and present ircd coders, and others.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * $Id$
- */
-
-#ifndef SPRINTF_IRC
-#define SPRINTF_IRC
-
-
-/*=============================================================================
- * Proto types
- */
-
-extern int vsprintf_irc(char *, const char *, va_list);
-
-/*
- * ircsprintf - optimized sprintf
- */
-extern int ircsprintf(char *, const char *, ...);
-#endif /* SPRINTF_IRC */
diff --git a/modules/core/m_join.c b/modules/core/m_join.c
index 3eb6908..7937d0c 100644
--- a/modules/core/m_join.c
+++ b/modules/core/m_join.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
@@ -541,7 +540,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
what = -1;
}
*mbuf++ = 'k';
- len = ircsprintf(pbuf, "%s ", oldmode->key);
+ len = sprintf(pbuf, "%s ", oldmode->key);
pbuf += len;
}
@@ -553,7 +552,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
what = 1;
}
*mbuf++ = 'l';
- len = ircsprintf(pbuf, "%d ", mode->limit);
+ len = sprintf(pbuf, "%d ", mode->limit);
pbuf += len;
}
@@ -565,7 +564,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
what = 1;
}
*mbuf++ = 'k';
- len = ircsprintf(pbuf, "%s ", mode->key);
+ len = sprintf(pbuf, "%s ", mode->key);
pbuf += len;
}
*mbuf = '\0';
diff --git a/modules/core/m_kill.c b/modules/core/m_kill.c
index 7686b77..c70cbdc 100644
--- a/modules/core/m_kill.c
+++ b/modules/core/m_kill.c
@@ -34,7 +34,6 @@
#include "send.h"
#include "whowas.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "parse.h"
#include "modules.h"
diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c
index fa68b22..897ce59 100644
--- a/modules/core/m_mode.c
+++ b/modules/core/m_mode.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_user.h"
@@ -215,8 +214,8 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, char *parv[
strlcpy(s, parv[4], sizeof(banbuf));
/* only need to construct one buffer, for non-ts6 servers */
- mlen = ircsprintf(modebuf, ":%s MODE %s +",
- source_p->name, chptr->chname);
+ mlen = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s +",
+ source_p->name, chptr->chname);
mbuf = modebuf + mlen;
pbuf = parabuf;
@@ -249,7 +248,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, char *parv[
}
*mbuf++ = parv[3][0];
- pbuf += ircsprintf(pbuf, "%s ", s);
+ pbuf += sprintf(pbuf, "%s ", s);
modecount++;
}
diff --git a/modules/core/m_sjoin.c b/modules/core/m_sjoin.c
index 53e442f..65a5caa 100644
--- a/modules/core/m_sjoin.c
+++ b/modules/core/m_sjoin.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
@@ -270,14 +269,14 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
modebuf[1] = '\0';
}
- buflen = ircsprintf(nick_buf, ":%s SJOIN %lu %s %s %s:",
- source_p->name, (unsigned long)tstosend,
- chptr->chname, modebuf, parabuf);
+ buflen = snprintf(nick_buf, sizeof(nick_buf), ":%s SJOIN %lu %s %s %s:",
+ source_p->name, (unsigned long)tstosend,
+ chptr->chname, modebuf, parabuf);
nick_ptr = nick_buf + buflen;
- buflen = ircsprintf(uid_buf, ":%s SJOIN %lu %s %s %s:",
- ID(source_p), (unsigned long)tstosend,
- chptr->chname, modebuf, parabuf);
+ buflen = snprintf(uid_buf, sizeof(uid_buf), ":%s SJOIN %lu %s %s %s:",
+ ID(source_p), (unsigned long)tstosend,
+ chptr->chname, modebuf, parabuf);
uid_ptr = uid_buf + buflen;
/* check we can fit a nick on the end, as well as \r\n and a prefix "
@@ -397,25 +396,25 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
{
sendto_server(client_p, 0, CAP_TS6, "%s", nick_buf);
- buflen = ircsprintf(nick_buf, ":%s SJOIN %lu %s %s %s:",
- source_p->name, (unsigned long)tstosend,
- chptr->chname, modebuf, parabuf);
+ buflen = snprintf(nick_buf, sizeof(nick_buf), ":%s SJOIN %lu %s %s %s:",
+ source_p->name, (unsigned long)tstosend,
+ chptr->chname, modebuf, parabuf);
nick_ptr = nick_buf + buflen;
}
- nick_ptr += ircsprintf(nick_ptr, "%s%s ", nick_prefix, target_p->name);
+ nick_ptr += sprintf(nick_ptr, "%s%s ", nick_prefix, target_p->name);
if ((uid_ptr - uid_buf + len_uid) > (IRCD_BUFSIZE - 2))
{
sendto_server(client_p, CAP_TS6, 0, "%s", uid_buf);
- buflen = ircsprintf(uid_buf, ":%s SJOIN %lu %s %s %s:",
- ID(source_p), (unsigned long)tstosend,
- chptr->chname, modebuf, parabuf);
+ buflen = snprintf(uid_buf, sizeof(uid_buf), ":%s SJOIN %lu %s %s %s:",
+ ID(source_p), (unsigned long)tstosend,
+ chptr->chname, modebuf, parabuf);
uid_ptr = uid_buf + buflen;
}
- uid_ptr += ircsprintf(uid_ptr, "%s%s ", uid_prefix, ID(target_p));
+ uid_ptr += sprintf(uid_ptr, "%s%s ", uid_prefix, ID(target_p));
if (!IsMember(target_p, chptr))
{
@@ -450,7 +449,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
*mbuf = '\0';
for(lcount = 0; lcount < MAXMODEPARAMS; lcount++)
{
- slen = ircsprintf(sptr, " %s", para[lcount]); /* see? */
+ slen = sprintf(sptr, " %s", para[lcount]); /* see? */
sptr += slen; /* ready for next */
}
sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s MODE %s %s%s",
@@ -474,7 +473,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
*mbuf = '\0';
for(lcount = 0; lcount < MAXMODEPARAMS; lcount++)
{
- slen = ircsprintf(sptr, " %s", para[lcount]);
+ slen = sprintf(sptr, " %s", para[lcount]);
sptr += slen;
}
sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s MODE %s %s%s",
@@ -499,7 +498,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
*mbuf = '\0';
for (lcount = 0; lcount < MAXMODEPARAMS; lcount++)
{
- slen = ircsprintf(sptr, " %s", para[lcount]);
+ slen = sprintf(sptr, " %s", para[lcount]);
sptr += slen;
}
sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s MODE %s %s%s",
@@ -544,7 +543,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p,
for (lcount = 0; lcount < pargs; lcount++)
{
- slen = ircsprintf(sptr, " %s", para[lcount]);
+ slen = sprintf(sptr, " %s", para[lcount]);
sptr += slen;
}
@@ -631,7 +630,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
if (oldmode->key[0] && !mode->key[0])
{
*mbuf++ = 'k';
- len = ircsprintf(pbuf, "%s ", oldmode->key);
+ len = sprintf(pbuf, "%s ", oldmode->key);
pbuf += len;
pargs++;
}
@@ -651,7 +650,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
if (mode->limit != 0 && oldmode->limit != mode->limit)
{
*mbuf++ = 'l';
- len = ircsprintf(pbuf, "%d ", mode->limit);
+ len = sprintf(pbuf, "%d ", mode->limit);
pbuf += len;
pargs++;
}
@@ -659,7 +658,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
if (mode->key[0] && strcmp(oldmode->key, mode->key))
{
*mbuf++ = 'k';
- len = ircsprintf(pbuf, "%s ", mode->key);
+ len = sprintf(pbuf, "%s ", mode->key);
pbuf += len;
pargs++;
}
@@ -730,7 +729,7 @@ remove_a_mode(struct Channel *chptr, struct Client *source_p,
{
for(i = 0; i < MAXMODEPARAMS; i++)
{
- l = ircsprintf(sp, " %s", lpara[i]);
+ l = sprintf(sp, " %s", lpara[i]);
sp += l;
}
@@ -754,7 +753,7 @@ remove_a_mode(struct Channel *chptr, struct Client *source_p,
*mbuf = '\0';
for(i = 0; i < count; i++)
{
- l = ircsprintf(sp, " %s", lpara[i]);
+ l = sprintf(sp, " %s", lpara[i]);
sp += l;
}
sendto_channel_local(ALL_MEMBERS, 0, chptr,
@@ -787,8 +786,8 @@ remove_ban_list(struct Channel *chptr, struct Client *source_p,
pbuf = lparabuf;
- cur_len = mlen = ircsprintf(lmodebuf, ":%s MODE %s -",
- source_p->name, chptr->chname);
+ cur_len = mlen = sprintf(lmodebuf, ":%s MODE %s -",
+ source_p->name, chptr->chname);
mbuf = lmodebuf + mlen;
DLINK_FOREACH_SAFE(ptr, next_ptr, list->head)
@@ -814,8 +813,8 @@ remove_ban_list(struct Channel *chptr, struct Client *source_p,
*mbuf++ = c;
cur_len += plen;
- pbuf += ircsprintf(pbuf, "%s!%s@%s ", banptr->name, banptr->username,
- banptr->host);
+ pbuf += sprintf(pbuf, "%s!%s@%s ", banptr->name, banptr->username,
+ banptr->host);
++count;
remove_ban(banptr, list);
diff --git a/modules/m_accept.c b/modules/m_accept.c
index 5fd1429..84cec49 100644
--- a/modules/m_accept.c
+++ b/modules/m_accept.c
@@ -27,7 +27,6 @@
#include "stdinc.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "list.h"
#include "numeric.h"
@@ -69,9 +68,9 @@ list_accepts(struct Client *source_p)
t = nicks;
}
- t += ircsprintf(t, "%s!%s@%s ",
- accept_p->nickptr,
- accept_p->userptr, accept_p->hostptr);
+ t += sprintf(t, "%s!%s@%s ",
+ accept_p->nickptr,
+ accept_p->userptr, accept_p->hostptr);
}
if (nicks[0] != '\0')
diff --git a/modules/m_dline.c b/modules/m_dline.c
index c2b3177..dd703fd 100644
--- a/modules/m_dline.c
+++ b/modules/m_dline.c
@@ -27,7 +27,6 @@
#include "channel.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "conf.h"
#include "ircd.h"
#include "hostmask.h"
diff --git a/modules/m_encap.c b/modules/m_encap.c
index 7d24112..88ca5e8 100644
--- a/modules/m_encap.c
+++ b/modules/m_encap.c
@@ -25,7 +25,6 @@
#include "stdinc.h"
#include "client.h"
#include "parse.h"
-#include "sprintf_irc.h"
#include "s_serv.h"
#include "send.h"
#include "modules.h"
diff --git a/modules/m_gline.c b/modules/m_gline.c
index da0dbd6..2bec753 100644
--- a/modules/m_gline.c
+++ b/modules/m_gline.c
@@ -30,7 +30,6 @@
#include "channel.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "conf.h"
#include "hostmask.h"
diff --git a/modules/m_ison.c b/modules/m_ison.c
index 884c1a2..0e67287 100644
--- a/modules/m_ison.c
+++ b/modules/m_ison.c
@@ -25,7 +25,6 @@
#include "stdinc.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
diff --git a/modules/m_kline.c b/modules/m_kline.c
index 70c9263..09430ea 100644
--- a/modules/m_kline.c
+++ b/modules/m_kline.c
@@ -27,7 +27,6 @@
#include "channel.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "conf.h"
#include "hostmask.h"
diff --git a/modules/m_knock.c b/modules/m_knock.c
index 4ce31d0..51bb53d 100644
--- a/modules/m_knock.c
+++ b/modules/m_knock.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
diff --git a/modules/m_map.c b/modules/m_map.c
index c1969c6..4d5c9ab 100644
--- a/modules/m_map.c
+++ b/modules/m_map.c
@@ -30,7 +30,6 @@
#include "conf.h"
#include "ircd.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "parse.h"
@@ -51,13 +50,13 @@ dump_map(struct Client *client_p, const struct Client *root_p,
*pbuf= '\0';
pb = pbuf;
- l = ircsprintf(pb, "%s", root_p->name);
+ l = sprintf(pb, "%s", root_p->name);
pb += l;
len += l;
if (root_p->id[0] != '\0')
{
- l = ircsprintf(pb, "[%s]", root_p->id);
+ l = sprintf(pb, "[%s]", root_p->id);
pb += l;
len += l;
}
diff --git a/modules/m_names.c b/modules/m_names.c
index ce56eb2..f1b9409 100644
--- a/modules/m_names.c
+++ b/modules/m_names.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
diff --git a/modules/m_topic.c b/modules/m_topic.c
index d13c3b9..dc7c109 100644
--- a/modules/m_topic.c
+++ b/modules/m_topic.c
@@ -29,7 +29,6 @@
#include "client.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "send.h"
diff --git a/modules/m_userhost.c b/modules/m_userhost.c
index a27cbfb..1f7c604 100644
--- a/modules/m_userhost.c
+++ b/modules/m_userhost.c
@@ -29,7 +29,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "parse.h"
#include "modules.h"
@@ -67,27 +66,27 @@ m_userhost(struct Client *client_p, struct Client *source_p,
*/
if (MyClient(target_p) && (target_p == source_p))
{
- rl = ircsprintf(response, "%s%s=%c%s@%s ",
- target_p->name,
- HasUMode(target_p, UMODE_OPER) ? "*" : "",
- (target_p->away[0]) ? '-' : '+',
- target_p->username,
- target_p->sockhost);
+ rl = sprintf(response, "%s%s=%c%s@%s ",
+ target_p->name,
+ HasUMode(target_p, UMODE_OPER) ? "*" : "",
+ (target_p->away[0]) ? '-' : '+',
+ target_p->username,
+ target_p->sockhost);
}
else
{
- rl = ircsprintf(response, "%s%s=%c%s@%s ",
- target_p->name, (HasUMode(target_p, UMODE_OPER) &&
- (!HasUMode(target_p, UMODE_HIDDEN) ||
- HasUMode(source_p, UMODE_OPER))) ? "*" : "",
- (target_p->away[0]) ? '-' : '+',
- target_p->username,
- target_p->host);
+ rl = sprintf(response, "%s%s=%c%s@%s ",
+ target_p->name, (HasUMode(target_p, UMODE_OPER) &&
+ (!HasUMode(target_p, UMODE_HIDDEN) ||
+ HasUMode(source_p, UMODE_OPER))) ? "*" : "",
+ (target_p->away[0]) ? '-' : '+',
+ target_p->username,
+ target_p->host);
}
if ((rl + cur_len) < (IRCD_BUFSIZE - 10))
{
- ircsprintf(t, "%s", response);
+ sprintf(t, "%s", response);
t += rl;
cur_len += rl;
}
diff --git a/modules/m_watch.c b/modules/m_watch.c
index 8e952f1..fb75aa4 100644
--- a/modules/m_watch.c
+++ b/modules/m_watch.c
@@ -26,7 +26,6 @@
#include "stdinc.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "conf.h"
diff --git a/modules/m_who.c b/modules/m_who.c
index a030715..09a5495 100644
--- a/modules/m_who.c
+++ b/modules/m_who.c
@@ -33,7 +33,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "conf.h"
#include "parse.h"
#include "modules.h"
diff --git a/modules/m_whois.c b/modules/m_whois.c
index 8b637e8..71e7e50 100644
--- a/modules/m_whois.c
+++ b/modules/m_whois.c
@@ -35,7 +35,6 @@
#include "s_serv.h"
#include "send.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "parse.h"
#include "modules.h"
@@ -317,7 +316,7 @@ whois_person(struct Client *source_p, struct Client *target_p)
t = buf + mlen;
}
- tlen = ircsprintf(t, "%s%s ", get_member_status(ms, 1), chptr->chname);
+ tlen = sprintf(t, "%s%s ", get_member_status(ms, 1), chptr->chname);
t += tlen;
cur_len += tlen;
reply_to_send = 1;
diff --git a/modules/m_xline.c b/modules/m_xline.c
index 0fbea64..9127b08 100644
--- a/modules/m_xline.c
+++ b/modules/m_xline.c
@@ -27,7 +27,6 @@
#include "channel.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "conf.h"
#include "hostmask.h"
diff --git a/src/Makefile.am b/src/Makefile.am
index 010988d..ae67d4b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -56,7 +56,6 @@ ircd_SOURCES = channel.c \
s_serv.c \
s_user.c \
send.c \
- sprintf_irc.c \
version.c \
watch.c \
whowas.c
diff --git a/src/Makefile.in b/src/Makefile.in
index 0033e94..32c567a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -82,8 +82,8 @@ am_ircd_OBJECTS = channel.$(OBJEXT) channel_mode.$(OBJEXT) \
s_bsd_select.$(OBJEXT) restart.$(OBJEXT) resv.$(OBJEXT) \
rsa.$(OBJEXT) s_auth.$(OBJEXT) s_bsd.$(OBJEXT) \
s_gline.$(OBJEXT) s_misc.$(OBJEXT) s_serv.$(OBJEXT) \
- s_user.$(OBJEXT) send.$(OBJEXT) sprintf_irc.$(OBJEXT) \
- version.$(OBJEXT) watch.$(OBJEXT) whowas.$(OBJEXT)
+ s_user.$(OBJEXT) send.$(OBJEXT) version.$(OBJEXT) \
+ watch.$(OBJEXT) whowas.$(OBJEXT)
ircd_OBJECTS = $(am_ircd_OBJECTS)
am__DEPENDENCIES_1 =
AM_V_lt = $(am__v_lt_@AM_V@)
@@ -367,7 +367,6 @@ ircd_SOURCES = channel.c \
s_serv.c \
s_user.c \
send.c \
- sprintf_irc.c \
version.c \
watch.c \
whowas.c
@@ -515,7 +514,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s_serv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s_user.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/send.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprintf_irc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/whowas.Po@am__quote@
diff --git a/src/channel.c b/src/channel.c
index 9207f17..14abc87 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -33,7 +33,6 @@
#include "conf.h"
#include "hostmask.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h" /* captab */
@@ -159,10 +158,10 @@ send_members(struct Client *client_p, struct Channel *chptr,
int tlen; /* length of text to append */
char *t, *start; /* temp char pointer */
- start = t = buf + ircsprintf(buf, ":%s SJOIN %lu %s %s %s:",
- ID_or_name(&me, client_p),
- (unsigned long)chptr->channelts,
- chptr->chname, lmodebuf, lparabuf);
+ start = t = buf + sprintf(buf, ":%s SJOIN %lu %s %s %s:",
+ ID_or_name(&me, client_p),
+ (unsigned long)chptr->channelts,
+ chptr->chname, lmodebuf, lparabuf);
DLINK_FOREACH(ptr, chptr->members.head)
{
@@ -232,10 +231,10 @@ send_mode_list(struct Client *client_p, struct Channel *chptr,
return;
if (ts5)
- mlen = ircsprintf(buf, ":%s MODE %s +", me.name, chptr->chname);
+ mlen = sprintf(buf, ":%s MODE %s +", me.name, chptr->chname);
else
- mlen = ircsprintf(buf, ":%s BMASK %lu %s %c :", me.id,
- (unsigned long)chptr->channelts, chptr->chname, flag);
+ mlen = sprintf(buf, ":%s BMASK %lu %s %c :", me.id,
+ (unsigned long)chptr->channelts, chptr->chname, flag);
/* MODE needs additional one byte for space between buf and pbuf */
cur_len = mlen + ts5;
@@ -273,8 +272,8 @@ send_mode_list(struct Client *client_p, struct Channel *chptr,
*mp = '\0';
}
- pp += ircsprintf(pp, "%s!%s@%s ", banptr->name, banptr->username,
- banptr->host);
+ pp += sprintf(pp, "%s!%s@%s ", banptr->name, banptr->username,
+ banptr->host);
cur_len += tlen;
}
@@ -444,10 +443,10 @@ channel_member_names(struct Client *source_p, struct Channel *chptr,
if (PubChannel(chptr) || is_member)
{
- t = lbuf + ircsprintf(lbuf, form_str(RPL_NAMREPLY),
- me.name, source_p->name,
- channel_pub_or_secret(chptr),
- chptr->chname);
+ t = lbuf + sprintf(lbuf, form_str(RPL_NAMREPLY),
+ me.name, source_p->name,
+ channel_pub_or_secret(chptr),
+ chptr->chname);
start = t;
DLINK_FOREACH(ptr, chptr->members.head)
@@ -482,8 +481,8 @@ channel_member_names(struct Client *source_p, struct Channel *chptr,
t = start;
}
- t += ircsprintf(t, "%s%s ", get_member_status(ms, multi_prefix),
- target_p->name);
+ t += sprintf(t, "%s%s ", get_member_status(ms, multi_prefix),
+ target_p->name);
}
if (tlen != 0)
diff --git a/src/channel_mode.c b/src/channel_mode.c
index cf8783d..2a21b76 100644
--- a/src/channel_mode.c
+++ b/src/channel_mode.c
@@ -31,7 +31,6 @@
#include "conf.h"
#include "hostmask.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "s_serv.h" /* captab */
@@ -192,7 +191,7 @@ add_id(struct Client *client_p, struct Channel *chptr, char *banid, int type)
* Re-assemble a new n!u@h and print it back to banid for sending
* the mode to the channel.
*/
- len = ircsprintf(banid, "%s!%s@%s", name, user, host);
+ len = sprintf(banid, "%s!%s@%s", name, user, host);
switch (type)
{
@@ -237,7 +236,7 @@ add_id(struct Client *client_p, struct Channel *chptr, char *banid, int type)
ban_p->who = MyMalloc(strlen(client_p->name) +
strlen(client_p->username) +
strlen(client_p->host) + 3);
- ircsprintf(ban_p->who, "%s!%s@%s", client_p->name,
+ sprintf(ban_p->who, "%s!%s@%s", client_p->name,
client_p->username, client_p->host);
}
else
@@ -284,7 +283,7 @@ del_id(struct Channel *chptr, char *banid, int type)
* Re-assemble a new n!u@h and print it back to banid for sending
* the mode to the channel.
*/
- ircsprintf(banid, "%s!%s@%s", name, user, host);
+ sprintf(banid, "%s!%s@%s", name, user, host);
switch (type)
{
@@ -363,7 +362,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p,
*mbuf++ = 'l';
if (IsServer(client_p) || HasFlag(client_p, FLAGS_SERVICE) || IsMember(client_p, chptr))
- pbuf += ircsprintf(pbuf, "%d ", chptr->mode.limit);
+ pbuf += sprintf(pbuf, "%d ", chptr->mode.limit);
}
if (chptr->mode.key[0])
@@ -371,7 +370,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p,
*mbuf++ = 'k';
if (IsServer(client_p) || HasFlag(client_p, FLAGS_SERVICE) || IsMember(client_p, chptr))
- ircsprintf(pbuf, "%s ", chptr->mode.key);
+ sprintf(pbuf, "%s ", chptr->mode.key);
}
*mbuf = '\0';
@@ -1276,7 +1275,7 @@ chm_limit(struct Client *client_p, struct Client *source_p,
if ((limit = atoi(lstr)) <= 0)
return;
- ircsprintf(lstr, "%d", limit);
+ sprintf(lstr, "%d", limit);
/* if somebody sets MODE #channel +ll 1 2, accept latter --fl */
for (i = 0; i < mode_count; i++)
@@ -1531,10 +1530,10 @@ send_cap_mode_changes(struct Client *client_p, struct Client *source_p,
parptr = parabuf;
if ((cap & CAP_TS6) && source_p->id[0] != '\0')
- mbl = ircsprintf(modebuf, ":%s TMODE %lu %s ", source_p->id,
+ mbl = sprintf(modebuf, ":%s TMODE %lu %s ", source_p->id,
(unsigned long)chptr->channelts, chptr->chname);
else
- mbl = ircsprintf(modebuf, ":%s MODE %s ", source_p->name,
+ mbl = sprintf(modebuf, ":%s MODE %s ", source_p->name,
chptr->chname);
/* loop the list of - modes we have */
@@ -1580,11 +1579,11 @@ send_cap_mode_changes(struct Client *client_p, struct Client *source_p,
mc = 0;
if ((cap & CAP_TS6) && source_p->id[0] != '\0')
- mbl = ircsprintf(modebuf, ":%s MODE %s ", source_p->id,
- chptr->chname);
+ mbl = sprintf(modebuf, ":%s MODE %s ", source_p->id,
+ chptr->chname);
else
- mbl = ircsprintf(modebuf, ":%s MODE %s ", source_p->name,
- chptr->chname);
+ mbl = sprintf(modebuf, ":%s MODE %s ", source_p->name,
+ chptr->chname);
pbl = 0;
parabuf[0] = '\0';
@@ -1604,7 +1603,7 @@ send_cap_mode_changes(struct Client *client_p, struct Client *source_p,
if (arg != NULL)
{
- len = ircsprintf(parptr, "%s ", arg);
+ len = sprintf(parptr, "%s ", arg);
pbl += len;
parptr += len;
mc++;
@@ -1645,12 +1644,12 @@ send_mode_changes(struct Client *client_p, struct Client *source_p,
return;
if (IsServer(source_p))
- mbl = ircsprintf(modebuf, ":%s MODE %s ", (IsHidden(source_p) ||
- ConfigServerHide.hide_servers) ?
- me.name : source_p->name, chname);
+ mbl = sprintf(modebuf, ":%s MODE %s ", (IsHidden(source_p) ||
+ ConfigServerHide.hide_servers) ?
+ me.name : source_p->name, chname);
else
- mbl = ircsprintf(modebuf, ":%s!%s@%s MODE %s ", source_p->name,
- source_p->username, source_p->host, chname);
+ mbl = sprintf(modebuf, ":%s!%s@%s MODE %s ", source_p->name,
+ source_p->username, source_p->host, chname);
mc = 0;
nc = 0;
@@ -1686,10 +1685,10 @@ send_mode_changes(struct Client *client_p, struct Client *source_p,
mc = 0;
if (IsServer(source_p))
- mbl = ircsprintf(modebuf, ":%s MODE %s ", me.name, chname);
+ mbl = sprintf(modebuf, ":%s MODE %s ", me.name, chname);
else
- mbl = ircsprintf(modebuf, ":%s!%s@%s MODE %s ", source_p->name,
- source_p->username, source_p->host, chname);
+ mbl = sprintf(modebuf, ":%s!%s@%s MODE %s ", source_p->name,
+ source_p->username, source_p->host, chname);
pbl = 0;
parabuf[0] = '\0';
@@ -1709,7 +1708,7 @@ send_mode_changes(struct Client *client_p, struct Client *source_p,
if (arg != NULL)
{
- len = ircsprintf(parptr, "%s ", arg);
+ len = sprintf(parptr, "%s ", arg);
pbl += len;
parptr += len;
mc++;
diff --git a/src/conf_parser.c b/src/conf_parser.c
index f8f0e5f..379e86c 100644
--- a/src/conf_parser.c
+++ b/src/conf_parser.c
@@ -80,7 +80,6 @@
#include "log.h"
#include "client.h" /* for UMODE_ALL only */
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "memory.h"
#include "modules.h"
#include "s_serv.h"
@@ -178,7 +177,7 @@ reset_block_state(void)
/* Line 371 of yacc.c */
-#line 182 "conf_parser.c"
+#line 181 "conf_parser.c"
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
@@ -664,14 +663,14 @@ extern int yydebug;
typedef union YYSTYPE
{
/* Line 387 of yacc.c */
-#line 139 "conf_parser.y"
+#line 138 "conf_parser.y"
int number;
char *string;
/* Line 387 of yacc.c */
-#line 675 "conf_parser.c"
+#line 674 "conf_parser.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
@@ -699,7 +698,7 @@ int yyparse ();
/* Copy the second part of user declarations. */
/* Line 390 of yacc.c */
-#line 703 "conf_parser.c"
+#line 702 "conf_parser.c"
#ifdef short
# undef short
@@ -1266,71 +1265,71 @@ static const yytype_int16 yyrhs[] =
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 365, 365, 366, 369, 370, 371, 372, 373, 374,
- 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
- 385, 386, 387, 388, 389, 390, 394, 394, 395, 399,
- 403, 407, 411, 415, 419, 423, 429, 429, 430, 431,
- 432, 433, 440, 443, 443, 444, 444, 444, 446, 452,
- 459, 461, 461, 462, 462, 463, 463, 464, 464, 465,
- 465, 466, 466, 467, 467, 468, 468, 469, 469, 470,
- 471, 474, 475, 477, 477, 478, 484, 492, 492, 493,
- 499, 507, 549, 608, 636, 644, 659, 674, 683, 697,
- 706, 734, 764, 789, 811, 833, 842, 844, 844, 845,
- 845, 846, 846, 848, 857, 866, 878, 879, 879, 881,
- 881, 882, 884, 891, 891, 904, 905, 907, 907, 908,
- 908, 910, 918, 921, 927, 926, 932, 932, 933, 937,
- 941, 945, 949, 953, 957, 968, 967, 1044, 1044, 1045,
- 1045, 1045, 1046, 1046, 1046, 1047, 1047, 1047, 1049, 1055,
- 1061, 1067, 1078, 1084, 1091, 1090, 1096, 1096, 1097, 1101,
- 1105, 1109, 1113, 1117, 1121, 1125, 1129, 1133, 1137, 1141,
- 1145, 1149, 1153, 1157, 1161, 1165, 1169, 1173, 1180, 1179,
- 1185, 1185, 1186, 1190, 1194, 1198, 1202, 1206, 1210, 1214,
- 1218, 1222, 1226, 1230, 1234, 1238, 1242, 1246, 1250, 1254,
- 1258, 1269, 1268, 1329, 1329, 1330, 1331, 1331, 1332, 1333,
- 1334, 1335, 1336, 1337, 1338, 1339, 1340, 1340, 1341, 1342,
- 1343, 1344, 1346, 1352, 1358, 1364, 1370, 1376, 1382, 1388,
- 1394, 1400, 1407, 1413, 1419, 1425, 1434, 1444, 1443, 1449,
- 1449, 1450, 1454, 1465, 1464, 1471, 1470, 1475, 1475, 1476,
- 1480, 1484, 1490, 1490, 1491, 1491, 1491, 1491, 1491, 1493,
- 1493, 1495, 1495, 1497, 1511, 1531, 1537, 1547, 1546, 1588,
- 1588, 1589, 1589, 1589, 1589, 1590, 1590, 1590, 1591, 1591,
- 1593, 1599, 1605, 1611, 1623, 1622, 1628, 1628, 1629, 1633,
- 1637, 1641, 1645, 1649, 1653, 1657, 1661, 1665, 1671, 1685,
- 1694, 1708, 1707, 1716, 1716, 1717, 1717, 1717, 1717, 1719,
- 1725, 1734, 1743, 1745, 1745, 1746, 1746, 1748, 1764, 1763,
- 1788, 1788, 1789, 1789, 1789, 1789, 1791, 1797, 1817, 1816,
- 1822, 1822, 1823, 1827, 1831, 1835, 1839, 1843, 1847, 1851,
- 1855, 1859, 1869, 1868, 1889, 1889, 1890, 1890, 1890, 1892,
- 1899, 1898, 1904, 1904, 1905, 1909, 1913, 1917, 1921, 1925,
- 1929, 1933, 1937, 1941, 1951, 1950, 2016, 2016, 2017, 2017,
- 2017, 2018, 2018, 2019, 2019, 2019, 2020, 2020, 2020, 2021,
- 2021, 2022, 2024, 2030, 2036, 2042, 2055, 2068, 2074, 2078,
- 2087, 2086, 2091, 2091, 2092, 2096, 2102, 2113, 2119, 2125,
- 2131, 2147, 2146, 2209, 2208, 2214, 2214, 2215, 2221, 2221,
- 2222, 2222, 2222, 2222, 2224, 2244, 2254, 2253, 2280, 2280,
- 2281, 2281, 2281, 2283, 2289, 2298, 2300, 2300, 2301, 2301,
- 2303, 2321, 2320, 2366, 2365, 2371, 2371, 2372, 2378, 2378,
- 2379, 2379, 2379, 2379, 2381, 2387, 2396, 2399, 2399, 2400,
- 2400, 2401, 2401, 2402, 2402, 2403, 2403, 2404, 2404, 2405,
- 2406, 2407, 2407, 2408, 2408, 2409, 2409, 2410, 2410, 2411,
- 2411, 2412, 2412, 2413, 2414, 2414, 2415, 2415, 2416, 2416,
- 2417, 2417, 2418, 2418, 2419, 2420, 2420, 2421, 2422, 2423,
- 2423, 2424, 2424, 2425, 2426, 2427, 2428, 2428, 2429, 2432,
- 2437, 2443, 2449, 2455, 2460, 2465, 2470, 2475, 2480, 2485,
- 2490, 2495, 2500, 2505, 2510, 2515, 2520, 2525, 2531, 2542,
- 2547, 2552, 2557, 2562, 2567, 2570, 2575, 2578, 2583, 2588,
- 2593, 2598, 2603, 2608, 2613, 2618, 2623, 2634, 2639, 2644,
- 2649, 2658, 2667, 2672, 2677, 2683, 2682, 2687, 2687, 2688,
- 2691, 2694, 2697, 2700, 2703, 2706, 2709, 2712, 2715, 2718,
- 2721, 2724, 2727, 2730, 2733, 2736, 2739, 2742, 2745, 2751,
- 2750, 2755, 2755, 2756, 2759, 2762, 2765, 2768, 2771, 2774,
- 2777, 2780, 2783, 2786, 2789, 2792, 2795, 2798, 2801, 2804,
- 2807, 2810, 2813, 2818, 2823, 2828, 2837, 2840, 2840, 2841,
- 2842, 2842, 2843, 2843, 2844, 2844, 2845, 2846, 2846, 2847,
- 2848, 2848, 2849, 2849, 2851, 2856, 2861, 2866, 2871, 2876,
- 2881, 2886, 2891, 2896, 2901, 2906, 2911, 2916, 2924, 2927,
- 2927, 2928, 2928, 2929, 2930, 2930, 2931, 2932, 2934, 2940,
- 2946, 2955, 2969, 2975
+ 0, 364, 364, 365, 368, 369, 370, 371, 372, 373,
+ 374, 375, 376, 377, 378, 379, 380, 381, 382, 383,
+ 384, 385, 386, 387, 388, 389, 393, 393, 394, 398,
+ 402, 406, 410, 414, 418, 422, 428, 428, 429, 430,
+ 431, 432, 439, 442, 442, 443, 443, 443, 445, 451,
+ 458, 460, 460, 461, 461, 462, 462, 463, 463, 464,
+ 464, 465, 465, 466, 466, 467, 467, 468, 468, 469,
+ 470, 473, 474, 476, 476, 477, 483, 491, 491, 492,
+ 498, 506, 548, 607, 635, 643, 658, 673, 682, 696,
+ 705, 733, 763, 788, 810, 832, 841, 843, 843, 844,
+ 844, 845, 845, 847, 856, 865, 877, 878, 878, 880,
+ 880, 881, 883, 890, 890, 903, 904, 906, 906, 907,
+ 907, 909, 917, 920, 926, 925, 931, 931, 932, 936,
+ 940, 944, 948, 952, 956, 967, 966, 1043, 1043, 1044,
+ 1044, 1044, 1045, 1045, 1045, 1046, 1046, 1046, 1048, 1054,
+ 1060, 1066, 1077, 1083, 1090, 1089, 1095, 1095, 1096, 1100,
+ 1104, 1108, 1112, 1116, 1120, 1124, 1128, 1132, 1136, 1140,
+ 1144, 1148, 1152, 1156, 1160, 1164, 1168, 1172, 1179, 1178,
+ 1184, 1184, 1185, 1189, 1193, 1197, 1201, 1205, 1209, 1213,
+ 1217, 1221, 1225, 1229, 1233, 1237, 1241, 1245, 1249, 1253,
+ 1257, 1268, 1267, 1328, 1328, 1329, 1330, 1330, 1331, 1332,
+ 1333, 1334, 1335, 1336, 1337, 1338, 1339, 1339, 1340, 1341,
+ 1342, 1343, 1345, 1351, 1357, 1363, 1369, 1375, 1381, 1387,
+ 1393, 1399, 1406, 1412, 1418, 1424, 1433, 1443, 1442, 1448,
+ 1448, 1449, 1453, 1464, 1463, 1470, 1469, 1474, 1474, 1475,
+ 1479, 1483, 1489, 1489, 1490, 1490, 1490, 1490, 1490, 1492,
+ 1492, 1494, 1494, 1496, 1510, 1530, 1536, 1546, 1545, 1587,
+ 1587, 1588, 1588, 1588, 1588, 1589, 1589, 1589, 1590, 1590,
+ 1592, 1598, 1604, 1610, 1622, 1621, 1627, 1627, 1628, 1632,
+ 1636, 1640, 1644, 1648, 1652, 1656, 1660, 1664, 1670, 1684,
+ 1693, 1707, 1706, 1715, 1715, 1716, 1716, 1716, 1716, 1718,
+ 1724, 1733, 1742, 1744, 1744, 1745, 1745, 1747, 1763, 1762,
+ 1787, 1787, 1788, 1788, 1788, 1788, 1790, 1796, 1816, 1815,
+ 1821, 1821, 1822, 1826, 1830, 1834, 1838, 1842, 1846, 1850,
+ 1854, 1858, 1868, 1867, 1888, 1888, 1889, 1889, 1889, 1891,
+ 1898, 1897, 1903, 1903, 1904, 1908, 1912, 1916, 1920, 1924,
+ 1928, 1932, 1936, 1940, 1950, 1949, 2015, 2015, 2016, 2016,
+ 2016, 2017, 2017, 2018, 2018, 2018, 2019, 2019, 2019, 2020,
+ 2020, 2021, 2023, 2029, 2035, 2041, 2054, 2067, 2073, 2077,
+ 2086, 2085, 2090, 2090, 2091, 2095, 2101, 2112, 2118, 2124,
+ 2130, 2146, 2145, 2208, 2207, 2213, 2213, 2214, 2220, 2220,
+ 2221, 2221, 2221, 2221, 2223, 2243, 2253, 2252, 2279, 2279,
+ 2280, 2280, 2280, 2282, 2288, 2297, 2299, 2299, 2300, 2300,
+ 2302, 2320, 2319, 2365, 2364, 2370, 2370, 2371, 2377, 2377,
+ 2378, 2378, 2378, 2378, 2380, 2386, 2395, 2398, 2398, 2399,
+ 2399, 2400, 2400, 2401, 2401, 2402, 2402, 2403, 2403, 2404,
+ 2405, 2406, 2406, 2407, 2407, 2408, 2408, 2409, 2409, 2410,
+ 2410, 2411, 2411, 2412, 2413, 2413, 2414, 2414, 2415, 2415,
+ 2416, 2416, 2417, 2417, 2418, 2419, 2419, 2420, 2421, 2422,
+ 2422, 2423, 2423, 2424, 2425, 2426, 2427, 2427, 2428, 2431,
+ 2436, 2442, 2448, 2454, 2459, 2464, 2469, 2474, 2479, 2484,
+ 2489, 2494, 2499, 2504, 2509, 2514, 2519, 2524, 2530, 2541,
+ 2546, 2551, 2556, 2561, 2566, 2569, 2574, 2577, 2582, 2587,
+ 2592, 2597, 2602, 2607, 2612, 2617, 2622, 2633, 2638, 2643,
+ 2648, 2657, 2666, 2671, 2676, 2682, 2681, 2686, 2686, 2687,
+ 2690, 2693, 2696, 2699, 2702, 2705, 2708, 2711, 2714, 2717,
+ 2720, 2723, 2726, 2729, 2732, 2735, 2738, 2741, 2744, 2750,
+ 2749, 2754, 2754, 2755, 2758, 2761, 2764, 2767, 2770, 2773,
+ 2776, 2779, 2782, 2785, 2788, 2791, 2794, 2797, 2800, 2803,
+ 2806, 2809, 2812, 2817, 2822, 2827, 2836, 2839, 2839, 2840,
+ 2841, 2841, 2842, 2842, 2843, 2843, 2844, 2845, 2845, 2846,
+ 2847, 2847, 2848, 2848, 2850, 2855, 2860, 2865, 2870, 2875,
+ 2880, 2885, 2890, 2895, 2900, 2905, 2910, 2915, 2923, 2926,
+ 2926, 2927, 2927, 2928, 2929, 2929, 2930, 2931, 2933, 2939,
+ 2945, 2954, 2968, 2974
};
#endif
@@ -3179,13 +3178,13 @@ yyreduce:
{
case 26:
/* Line 1792 of yacc.c */
-#line 394 "conf_parser.y"
+#line 393 "conf_parser.y"
{ (yyval.number) = 0; }
break;
case 28:
/* Line 1792 of yacc.c */
-#line 396 "conf_parser.y"
+#line 395 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (2)].number) + (yyvsp[(2) - (2)].number);
}
@@ -3193,7 +3192,7 @@ yyreduce:
case 29:
/* Line 1792 of yacc.c */
-#line 400 "conf_parser.y"
+#line 399 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) + (yyvsp[(3) - (3)].number);
}
@@ -3201,7 +3200,7 @@ yyreduce:
case 30:
/* Line 1792 of yacc.c */
-#line 404 "conf_parser.y"
+#line 403 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 + (yyvsp[(3) - (3)].number);
}
@@ -3209,7 +3208,7 @@ yyreduce:
case 31:
/* Line 1792 of yacc.c */
-#line 408 "conf_parser.y"
+#line 407 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 + (yyvsp[(3) - (3)].number);
}
@@ -3217,7 +3216,7 @@ yyreduce:
case 32:
/* Line 1792 of yacc.c */
-#line 412 "conf_parser.y"
+#line 411 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 + (yyvsp[(3) - (3)].number);
}
@@ -3225,7 +3224,7 @@ yyreduce:
case 33:
/* Line 1792 of yacc.c */
-#line 416 "conf_parser.y"
+#line 415 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 * 7 + (yyvsp[(3) - (3)].number);
}
@@ -3233,7 +3232,7 @@ yyreduce:
case 34:
/* Line 1792 of yacc.c */
-#line 420 "conf_parser.y"
+#line 419 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 * 7 * 4 + (yyvsp[(3) - (3)].number);
}
@@ -3241,7 +3240,7 @@ yyreduce:
case 35:
/* Line 1792 of yacc.c */
-#line 424 "conf_parser.y"
+#line 423 "conf_parser.y"
{
(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 * 365 + (yyvsp[(3) - (3)].number);
}
@@ -3249,37 +3248,37 @@ yyreduce:
case 36:
/* Line 1792 of yacc.c */
-#line 429 "conf_parser.y"
+#line 428 "conf_parser.y"
{ (yyval.number) = 0; }
break;
case 38:
/* Line 1792 of yacc.c */
-#line 430 "conf_parser.y"
+#line 429 "conf_parser.y"
{ (yyval.number) = (yyvsp[(1) - (2)].number) + (yyvsp[(2) - (2)].number); }
break;
case 39:
/* Line 1792 of yacc.c */
-#line 431 "conf_parser.y"
+#line 430 "conf_parser.y"
{ (yyval.number) = (yyvsp[(1) - (3)].number) + (yyvsp[(3) - (3)].number); }
break;
case 40:
/* Line 1792 of yacc.c */
-#line 432 "conf_parser.y"
+#line 431 "conf_parser.y"
{ (yyval.number) = (yyvsp[(1) - (3)].number) * 1024 + (yyvsp[(3) - (3)].number); }
break;
case 41:
/* Line 1792 of yacc.c */
-#line 433 "conf_parser.y"
+#line 432 "conf_parser.y"
{ (yyval.number) = (yyvsp[(1) - (3)].number) * 1024 * 1024 + (yyvsp[(3) - (3)].number); }
break;
case 48:
/* Line 1792 of yacc.c */
-#line 447 "conf_parser.y"
+#line 446 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
add_conf_module(libio_basename(yylval.string));
@@ -3288,7 +3287,7 @@ yyreduce:
case 49:
/* Line 1792 of yacc.c */
-#line 453 "conf_parser.y"
+#line 452 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
mod_add_path(yylval.string);
@@ -3297,7 +3296,7 @@ yyreduce:
case 75:
/* Line 1792 of yacc.c */
-#line 479 "conf_parser.y"
+#line 478 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.client_ctx)
@@ -3308,7 +3307,7 @@ yyreduce:
case 76:
/* Line 1792 of yacc.c */
-#line 485 "conf_parser.y"
+#line 484 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.client_ctx)
@@ -3319,7 +3318,7 @@ yyreduce:
case 79:
/* Line 1792 of yacc.c */
-#line 494 "conf_parser.y"
+#line 493 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
@@ -3330,7 +3329,7 @@ yyreduce:
case 80:
/* Line 1792 of yacc.c */
-#line 500 "conf_parser.y"
+#line 499 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
@@ -3341,7 +3340,7 @@ yyreduce:
case 81:
/* Line 1792 of yacc.c */
-#line 508 "conf_parser.y"
+#line 507 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
@@ -3386,7 +3385,7 @@ yyreduce:
case 82:
/* Line 1792 of yacc.c */
-#line 550 "conf_parser.y"
+#line 549 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 1)
@@ -3448,7 +3447,7 @@ yyreduce:
case 83:
/* Line 1792 of yacc.c */
-#line 609 "conf_parser.y"
+#line 608 "conf_parser.y"
{
/* TBD - XXX: error reporting */
#ifdef HAVE_LIBCRYPTO
@@ -3479,7 +3478,7 @@ yyreduce:
case 84:
/* Line 1792 of yacc.c */
-#line 637 "conf_parser.y"
+#line 636 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
@@ -3490,7 +3489,7 @@ yyreduce:
case 85:
/* Line 1792 of yacc.c */
-#line 645 "conf_parser.y"
+#line 644 "conf_parser.y"
{
/* this isn't rehashable */
if (conf_parser_ctx.pass == 2 && !ServerInfo.name)
@@ -3508,7 +3507,7 @@ yyreduce:
case 86:
/* Line 1792 of yacc.c */
-#line 660 "conf_parser.y"
+#line 659 "conf_parser.y"
{
/* this isn't rehashable */
if (conf_parser_ctx.pass == 2 && !ServerInfo.sid)
@@ -3526,7 +3525,7 @@ yyreduce:
case 87:
/* Line 1792 of yacc.c */
-#line 675 "conf_parser.y"
+#line 674 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3538,7 +3537,7 @@ yyreduce:
case 88:
/* Line 1792 of yacc.c */
-#line 684 "conf_parser.y"
+#line 683 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3555,7 +3554,7 @@ yyreduce:
case 89:
/* Line 1792 of yacc.c */
-#line 698 "conf_parser.y"
+#line 697 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3567,7 +3566,7 @@ yyreduce:
case 90:
/* Line 1792 of yacc.c */
-#line 707 "conf_parser.y"
+#line 706 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2 && *yylval.string != '*')
{
@@ -3598,7 +3597,7 @@ yyreduce:
case 91:
/* Line 1792 of yacc.c */
-#line 735 "conf_parser.y"
+#line 734 "conf_parser.y"
{
#ifdef IPV6
if (conf_parser_ctx.pass == 2 && *yylval.string != '*')
@@ -3631,7 +3630,7 @@ yyreduce:
case 92:
/* Line 1792 of yacc.c */
-#line 765 "conf_parser.y"
+#line 764 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3659,7 +3658,7 @@ yyreduce:
case 93:
/* Line 1792 of yacc.c */
-#line 790 "conf_parser.y"
+#line 789 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3684,7 +3683,7 @@ yyreduce:
case 94:
/* Line 1792 of yacc.c */
-#line 812 "conf_parser.y"
+#line 811 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3709,7 +3708,7 @@ yyreduce:
case 95:
/* Line 1792 of yacc.c */
-#line 834 "conf_parser.y"
+#line 833 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ServerInfo.hub = yylval.number;
@@ -3718,7 +3717,7 @@ yyreduce:
case 103:
/* Line 1792 of yacc.c */
-#line 849 "conf_parser.y"
+#line 848 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3730,7 +3729,7 @@ yyreduce:
case 104:
/* Line 1792 of yacc.c */
-#line 858 "conf_parser.y"
+#line 857 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3742,7 +3741,7 @@ yyreduce:
case 105:
/* Line 1792 of yacc.c */
-#line 867 "conf_parser.y"
+#line 866 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -3754,7 +3753,7 @@ yyreduce:
case 112:
/* Line 1792 of yacc.c */
-#line 885 "conf_parser.y"
+#line 884 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigLoggingEntry.use_logging = yylval.number;
@@ -3763,7 +3762,7 @@ yyreduce:
case 113:
/* Line 1792 of yacc.c */
-#line 891 "conf_parser.y"
+#line 890 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -3772,7 +3771,7 @@ yyreduce:
case 114:
/* Line 1792 of yacc.c */
-#line 895 "conf_parser.y"
+#line 894 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3785,7 +3784,7 @@ yyreduce:
case 121:
/* Line 1792 of yacc.c */
-#line 911 "conf_parser.y"
+#line 910 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3796,7 +3795,7 @@ yyreduce:
case 122:
/* Line 1792 of yacc.c */
-#line 919 "conf_parser.y"
+#line 918 "conf_parser.y"
{
block_state.size.value = (yyvsp[(3) - (4)].number);
}
@@ -3804,7 +3803,7 @@ yyreduce:
case 123:
/* Line 1792 of yacc.c */
-#line 922 "conf_parser.y"
+#line 921 "conf_parser.y"
{
block_state.size.value = 0;
}
@@ -3812,7 +3811,7 @@ yyreduce:
case 124:
/* Line 1792 of yacc.c */
-#line 927 "conf_parser.y"
+#line 926 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = 0;
@@ -3821,7 +3820,7 @@ yyreduce:
case 128:
/* Line 1792 of yacc.c */
-#line 934 "conf_parser.y"
+#line 933 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_USER;
@@ -3830,7 +3829,7 @@ yyreduce:
case 129:
/* Line 1792 of yacc.c */
-#line 938 "conf_parser.y"
+#line 937 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_OPER;
@@ -3839,7 +3838,7 @@ yyreduce:
case 130:
/* Line 1792 of yacc.c */
-#line 942 "conf_parser.y"
+#line 941 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_GLINE;
@@ -3848,7 +3847,7 @@ yyreduce:
case 131:
/* Line 1792 of yacc.c */
-#line 946 "conf_parser.y"
+#line 945 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_DLINE;
@@ -3857,7 +3856,7 @@ yyreduce:
case 132:
/* Line 1792 of yacc.c */
-#line 950 "conf_parser.y"
+#line 949 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_KLINE;
@@ -3866,7 +3865,7 @@ yyreduce:
case 133:
/* Line 1792 of yacc.c */
-#line 954 "conf_parser.y"
+#line 953 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_KILL;
@@ -3875,7 +3874,7 @@ yyreduce:
case 134:
/* Line 1792 of yacc.c */
-#line 958 "conf_parser.y"
+#line 957 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_DEBUG;
@@ -3884,7 +3883,7 @@ yyreduce:
case 135:
/* Line 1792 of yacc.c */
-#line 968 "conf_parser.y"
+#line 967 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -3896,7 +3895,7 @@ yyreduce:
case 136:
/* Line 1792 of yacc.c */
-#line 975 "conf_parser.y"
+#line 974 "conf_parser.y"
{
dlink_node *ptr = NULL;
@@ -3969,7 +3968,7 @@ yyreduce:
case 148:
/* Line 1792 of yacc.c */
-#line 1050 "conf_parser.y"
+#line 1049 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
@@ -3978,7 +3977,7 @@ yyreduce:
case 149:
/* Line 1792 of yacc.c */
-#line 1056 "conf_parser.y"
+#line 1055 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
@@ -3987,7 +3986,7 @@ yyreduce:
case 150:
/* Line 1792 of yacc.c */
-#line 1062 "conf_parser.y"
+#line 1061 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -3996,7 +3995,7 @@ yyreduce:
case 151:
/* Line 1792 of yacc.c */
-#line 1068 "conf_parser.y"
+#line 1067 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -4010,7 +4009,7 @@ yyreduce:
case 152:
/* Line 1792 of yacc.c */
-#line 1079 "conf_parser.y"
+#line 1078 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf));
@@ -4019,7 +4018,7 @@ yyreduce:
case 153:
/* Line 1792 of yacc.c */
-#line 1085 "conf_parser.y"
+#line 1084 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
@@ -4028,7 +4027,7 @@ yyreduce:
case 154:
/* Line 1792 of yacc.c */
-#line 1091 "conf_parser.y"
+#line 1090 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value = 0;
@@ -4037,7 +4036,7 @@ yyreduce:
case 158:
/* Line 1792 of yacc.c */
-#line 1098 "conf_parser.y"
+#line 1097 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_BOTS;
@@ -4046,7 +4045,7 @@ yyreduce:
case 159:
/* Line 1792 of yacc.c */
-#line 1102 "conf_parser.y"
+#line 1101 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_CCONN;
@@ -4055,7 +4054,7 @@ yyreduce:
case 160:
/* Line 1792 of yacc.c */
-#line 1106 "conf_parser.y"
+#line 1105 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_CCONN_FULL;
@@ -4064,7 +4063,7 @@ yyreduce:
case 161:
/* Line 1792 of yacc.c */
-#line 1110 "conf_parser.y"
+#line 1109 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_DEAF;
@@ -4073,7 +4072,7 @@ yyreduce:
case 162:
/* Line 1792 of yacc.c */
-#line 1114 "conf_parser.y"
+#line 1113 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_DEBUG;
@@ -4082,7 +4081,7 @@ yyreduce:
case 163:
/* Line 1792 of yacc.c */
-#line 1118 "conf_parser.y"
+#line 1117 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_FULL;
@@ -4091,7 +4090,7 @@ yyreduce:
case 164:
/* Line 1792 of yacc.c */
-#line 1122 "conf_parser.y"
+#line 1121 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_HIDDEN;
@@ -4100,7 +4099,7 @@ yyreduce:
case 165:
/* Line 1792 of yacc.c */
-#line 1126 "conf_parser.y"
+#line 1125 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SKILL;
@@ -4109,7 +4108,7 @@ yyreduce:
case 166:
/* Line 1792 of yacc.c */
-#line 1130 "conf_parser.y"
+#line 1129 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_NCHANGE;
@@ -4118,7 +4117,7 @@ yyreduce:
case 167:
/* Line 1792 of yacc.c */
-#line 1134 "conf_parser.y"
+#line 1133 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_REJ;
@@ -4127,7 +4126,7 @@ yyreduce:
case 168:
/* Line 1792 of yacc.c */
-#line 1138 "conf_parser.y"
+#line 1137 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_UNAUTH;
@@ -4136,7 +4135,7 @@ yyreduce:
case 169:
/* Line 1792 of yacc.c */
-#line 1142 "conf_parser.y"
+#line 1141 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SPY;
@@ -4145,7 +4144,7 @@ yyreduce:
case 170:
/* Line 1792 of yacc.c */
-#line 1146 "conf_parser.y"
+#line 1145 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_EXTERNAL;
@@ -4154,7 +4153,7 @@ yyreduce:
case 171:
/* Line 1792 of yacc.c */
-#line 1150 "conf_parser.y"
+#line 1149 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_OPERWALL;
@@ -4163,7 +4162,7 @@ yyreduce:
case 172:
/* Line 1792 of yacc.c */
-#line 1154 "conf_parser.y"
+#line 1153 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SERVNOTICE;
@@ -4172,7 +4171,7 @@ yyreduce:
case 173:
/* Line 1792 of yacc.c */
-#line 1158 "conf_parser.y"
+#line 1157 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_INVISIBLE;
@@ -4181,7 +4180,7 @@ yyreduce:
case 174:
/* Line 1792 of yacc.c */
-#line 1162 "conf_parser.y"
+#line 1161 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_WALLOP;
@@ -4190,7 +4189,7 @@ yyreduce:
case 175:
/* Line 1792 of yacc.c */
-#line 1166 "conf_parser.y"
+#line 1165 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SOFTCALLERID;
@@ -4199,7 +4198,7 @@ yyreduce:
case 176:
/* Line 1792 of yacc.c */
-#line 1170 "conf_parser.y"
+#line 1169 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_CALLERID;
@@ -4208,7 +4207,7 @@ yyreduce:
case 177:
/* Line 1792 of yacc.c */
-#line 1174 "conf_parser.y"
+#line 1173 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_LOCOPS;
@@ -4217,7 +4216,7 @@ yyreduce:
case 178:
/* Line 1792 of yacc.c */
-#line 1180 "conf_parser.y"
+#line 1179 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 0;
@@ -4226,7 +4225,7 @@ yyreduce:
case 182:
/* Line 1792 of yacc.c */
-#line 1187 "conf_parser.y"
+#line 1186 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_GLOBAL_KILL;
@@ -4235,7 +4234,7 @@ yyreduce:
case 183:
/* Line 1792 of yacc.c */
-#line 1191 "conf_parser.y"
+#line 1190 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_REMOTE;
@@ -4244,7 +4243,7 @@ yyreduce:
case 184:
/* Line 1792 of yacc.c */
-#line 1195 "conf_parser.y"
+#line 1194 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_K;
@@ -4253,7 +4252,7 @@ yyreduce:
case 185:
/* Line 1792 of yacc.c */
-#line 1199 "conf_parser.y"
+#line 1198 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_UNKLINE;
@@ -4262,7 +4261,7 @@ yyreduce:
case 186:
/* Line 1792 of yacc.c */
-#line 1203 "conf_parser.y"
+#line 1202 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_DLINE;
@@ -4271,7 +4270,7 @@ yyreduce:
case 187:
/* Line 1792 of yacc.c */
-#line 1207 "conf_parser.y"
+#line 1206 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_UNDLINE;
@@ -4280,7 +4279,7 @@ yyreduce:
case 188:
/* Line 1792 of yacc.c */
-#line 1211 "conf_parser.y"
+#line 1210 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_X;
@@ -4289,7 +4288,7 @@ yyreduce:
case 189:
/* Line 1792 of yacc.c */
-#line 1215 "conf_parser.y"
+#line 1214 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_GLINE;
@@ -4298,7 +4297,7 @@ yyreduce:
case 190:
/* Line 1792 of yacc.c */
-#line 1219 "conf_parser.y"
+#line 1218 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_DIE;
@@ -4307,7 +4306,7 @@ yyreduce:
case 191:
/* Line 1792 of yacc.c */
-#line 1223 "conf_parser.y"
+#line 1222 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_RESTART;
@@ -4316,7 +4315,7 @@ yyreduce:
case 192:
/* Line 1792 of yacc.c */
-#line 1227 "conf_parser.y"
+#line 1226 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_REHASH;
@@ -4325,7 +4324,7 @@ yyreduce:
case 193:
/* Line 1792 of yacc.c */
-#line 1231 "conf_parser.y"
+#line 1230 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_ADMIN;
@@ -4334,7 +4333,7 @@ yyreduce:
case 194:
/* Line 1792 of yacc.c */
-#line 1235 "conf_parser.y"
+#line 1234 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_N;
@@ -4343,7 +4342,7 @@ yyreduce:
case 195:
/* Line 1792 of yacc.c */
-#line 1239 "conf_parser.y"
+#line 1238 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_OPERWALL;
@@ -4352,7 +4351,7 @@ yyreduce:
case 196:
/* Line 1792 of yacc.c */
-#line 1243 "conf_parser.y"
+#line 1242 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_GLOBOPS;
@@ -4361,7 +4360,7 @@ yyreduce:
case 197:
/* Line 1792 of yacc.c */
-#line 1247 "conf_parser.y"
+#line 1246 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_OPER_SPY;
@@ -4370,7 +4369,7 @@ yyreduce:
case 198:
/* Line 1792 of yacc.c */
-#line 1251 "conf_parser.y"
+#line 1250 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_REMOTEBAN;
@@ -4379,7 +4378,7 @@ yyreduce:
case 199:
/* Line 1792 of yacc.c */
-#line 1255 "conf_parser.y"
+#line 1254 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_SET;
@@ -4388,7 +4387,7 @@ yyreduce:
case 200:
/* Line 1792 of yacc.c */
-#line 1259 "conf_parser.y"
+#line 1258 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_MODULE;
@@ -4397,7 +4396,7 @@ yyreduce:
case 201:
/* Line 1792 of yacc.c */
-#line 1269 "conf_parser.y"
+#line 1268 "conf_parser.y"
{
if (conf_parser_ctx.pass != 1)
break;
@@ -4414,7 +4413,7 @@ yyreduce:
case 202:
/* Line 1792 of yacc.c */
-#line 1281 "conf_parser.y"
+#line 1280 "conf_parser.y"
{
struct ClassItem *class = NULL;
@@ -4466,7 +4465,7 @@ yyreduce:
case 222:
/* Line 1792 of yacc.c */
-#line 1347 "conf_parser.y"
+#line 1346 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
@@ -4475,7 +4474,7 @@ yyreduce:
case 223:
/* Line 1792 of yacc.c */
-#line 1353 "conf_parser.y"
+#line 1352 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.ping_freq.value = (yyvsp[(3) - (4)].number);
@@ -4484,7 +4483,7 @@ yyreduce:
case 224:
/* Line 1792 of yacc.c */
-#line 1359 "conf_parser.y"
+#line 1358 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_perip.value = (yyvsp[(3) - (4)].number);
@@ -4493,7 +4492,7 @@ yyreduce:
case 225:
/* Line 1792 of yacc.c */
-#line 1365 "conf_parser.y"
+#line 1364 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.con_freq.value = (yyvsp[(3) - (4)].number);
@@ -4502,7 +4501,7 @@ yyreduce:
case 226:
/* Line 1792 of yacc.c */
-#line 1371 "conf_parser.y"
+#line 1370 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_total.value = (yyvsp[(3) - (4)].number);
@@ -4511,7 +4510,7 @@ yyreduce:
case 227:
/* Line 1792 of yacc.c */
-#line 1377 "conf_parser.y"
+#line 1376 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_global.value = (yyvsp[(3) - (4)].number);
@@ -4520,7 +4519,7 @@ yyreduce:
case 228:
/* Line 1792 of yacc.c */
-#line 1383 "conf_parser.y"
+#line 1382 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_local.value = (yyvsp[(3) - (4)].number);
@@ -4529,7 +4528,7 @@ yyreduce:
case 229:
/* Line 1792 of yacc.c */
-#line 1389 "conf_parser.y"
+#line 1388 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_ident.value = (yyvsp[(3) - (4)].number);
@@ -4538,7 +4537,7 @@ yyreduce:
case 230:
/* Line 1792 of yacc.c */
-#line 1395 "conf_parser.y"
+#line 1394 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.max_sendq.value = (yyvsp[(3) - (4)].number);
@@ -4547,7 +4546,7 @@ yyreduce:
case 231:
/* Line 1792 of yacc.c */
-#line 1401 "conf_parser.y"
+#line 1400 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
if ((yyvsp[(3) - (4)].number) >= CLIENT_FLOOD_MIN && (yyvsp[(3) - (4)].number) <= CLIENT_FLOOD_MAX)
@@ -4557,7 +4556,7 @@ yyreduce:
case 232:
/* Line 1792 of yacc.c */
-#line 1408 "conf_parser.y"
+#line 1407 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.cidr_bitlen_ipv4.value = (yyvsp[(3) - (4)].number) > 32 ? 32 : (yyvsp[(3) - (4)].number);
@@ -4566,7 +4565,7 @@ yyreduce:
case 233:
/* Line 1792 of yacc.c */
-#line 1414 "conf_parser.y"
+#line 1413 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.cidr_bitlen_ipv6.value = (yyvsp[(3) - (4)].number) > 128 ? 128 : (yyvsp[(3) - (4)].number);
@@ -4575,7 +4574,7 @@ yyreduce:
case 234:
/* Line 1792 of yacc.c */
-#line 1420 "conf_parser.y"
+#line 1419 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.number_per_cidr.value = (yyvsp[(3) - (4)].number);
@@ -4584,7 +4583,7 @@ yyreduce:
case 235:
/* Line 1792 of yacc.c */
-#line 1426 "conf_parser.y"
+#line 1425 "conf_parser.y"
{
if (conf_parser_ctx.pass != 1)
break;
@@ -4596,7 +4595,7 @@ yyreduce:
case 236:
/* Line 1792 of yacc.c */
-#line 1435 "conf_parser.y"
+#line 1434 "conf_parser.y"
{
if (conf_parser_ctx.pass != 1)
break;
@@ -4608,7 +4607,7 @@ yyreduce:
case 237:
/* Line 1792 of yacc.c */
-#line 1444 "conf_parser.y"
+#line 1443 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value &= CLASS_FLAGS_FAKE_IDLE;
@@ -4617,7 +4616,7 @@ yyreduce:
case 241:
/* Line 1792 of yacc.c */
-#line 1451 "conf_parser.y"
+#line 1450 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value |= CLASS_FLAGS_RANDOM_IDLE;
@@ -4626,7 +4625,7 @@ yyreduce:
case 242:
/* Line 1792 of yacc.c */
-#line 1455 "conf_parser.y"
+#line 1454 "conf_parser.y"
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value |= CLASS_FLAGS_HIDE_IDLE_FROM_OPERS;
@@ -4635,7 +4634,7 @@ yyreduce:
case 243:
/* Line 1792 of yacc.c */
-#line 1465 "conf_parser.y"
+#line 1464 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -4644,7 +4643,7 @@ yyreduce:
case 245:
/* Line 1792 of yacc.c */
-#line 1471 "conf_parser.y"
+#line 1470 "conf_parser.y"
{
block_state.flags.value = 0;
}
@@ -4652,7 +4651,7 @@ yyreduce:
case 249:
/* Line 1792 of yacc.c */
-#line 1477 "conf_parser.y"
+#line 1476 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_SSL;
@@ -4661,7 +4660,7 @@ yyreduce:
case 250:
/* Line 1792 of yacc.c */
-#line 1481 "conf_parser.y"
+#line 1480 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_HIDDEN;
@@ -4670,7 +4669,7 @@ yyreduce:
case 251:
/* Line 1792 of yacc.c */
-#line 1485 "conf_parser.y"
+#line 1484 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_SERVER;
@@ -4679,13 +4678,13 @@ yyreduce:
case 259:
/* Line 1792 of yacc.c */
-#line 1493 "conf_parser.y"
+#line 1492 "conf_parser.y"
{ block_state.flags.value = 0; }
break;
case 263:
/* Line 1792 of yacc.c */
-#line 1498 "conf_parser.y"
+#line 1497 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -4704,7 +4703,7 @@ yyreduce:
case 264:
/* Line 1792 of yacc.c */
-#line 1512 "conf_parser.y"
+#line 1511 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -4727,7 +4726,7 @@ yyreduce:
case 265:
/* Line 1792 of yacc.c */
-#line 1532 "conf_parser.y"
+#line 1531 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
@@ -4736,7 +4735,7 @@ yyreduce:
case 266:
/* Line 1792 of yacc.c */
-#line 1538 "conf_parser.y"
+#line 1537 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
@@ -4745,7 +4744,7 @@ yyreduce:
case 267:
/* Line 1792 of yacc.c */
-#line 1547 "conf_parser.y"
+#line 1546 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -4754,7 +4753,7 @@ yyreduce:
case 268:
/* Line 1792 of yacc.c */
-#line 1551 "conf_parser.y"
+#line 1550 "conf_parser.y"
{
dlink_node *ptr = NULL;
@@ -4795,7 +4794,7 @@ yyreduce:
case 280:
/* Line 1792 of yacc.c */
-#line 1594 "conf_parser.y"
+#line 1593 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
@@ -4804,7 +4803,7 @@ yyreduce:
case 281:
/* Line 1792 of yacc.c */
-#line 1600 "conf_parser.y"
+#line 1599 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -4813,7 +4812,7 @@ yyreduce:
case 282:
/* Line 1792 of yacc.c */
-#line 1606 "conf_parser.y"
+#line 1605 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
@@ -4822,7 +4821,7 @@ yyreduce:
case 283:
/* Line 1792 of yacc.c */
-#line 1612 "conf_parser.y"
+#line 1611 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -4836,7 +4835,7 @@ yyreduce:
case 284:
/* Line 1792 of yacc.c */
-#line 1623 "conf_parser.y"
+#line 1622 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value &= CONF_FLAGS_ENCRYPTED;
@@ -4845,7 +4844,7 @@ yyreduce:
case 288:
/* Line 1792 of yacc.c */
-#line 1630 "conf_parser.y"
+#line 1629 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_SPOOF_NOTICE;
@@ -4854,7 +4853,7 @@ yyreduce:
case 289:
/* Line 1792 of yacc.c */
-#line 1634 "conf_parser.y"
+#line 1633 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NOLIMIT;
@@ -4863,7 +4862,7 @@ yyreduce:
case 290:
/* Line 1792 of yacc.c */
-#line 1638 "conf_parser.y"
+#line 1637 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTKLINE;
@@ -4872,7 +4871,7 @@ yyreduce:
case 291:
/* Line 1792 of yacc.c */
-#line 1642 "conf_parser.y"
+#line 1641 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NEED_IDENTD;
@@ -4881,7 +4880,7 @@ yyreduce:
case 292:
/* Line 1792 of yacc.c */
-#line 1646 "conf_parser.y"
+#line 1645 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_CAN_FLOOD;
@@ -4890,7 +4889,7 @@ yyreduce:
case 293:
/* Line 1792 of yacc.c */
-#line 1650 "conf_parser.y"
+#line 1649 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NO_TILDE;
@@ -4899,7 +4898,7 @@ yyreduce:
case 294:
/* Line 1792 of yacc.c */
-#line 1654 "conf_parser.y"
+#line 1653 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTGLINE;
@@ -4908,7 +4907,7 @@ yyreduce:
case 295:
/* Line 1792 of yacc.c */
-#line 1658 "conf_parser.y"
+#line 1657 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTRESV;
@@ -4917,7 +4916,7 @@ yyreduce:
case 296:
/* Line 1792 of yacc.c */
-#line 1662 "conf_parser.y"
+#line 1661 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_WEBIRC;
@@ -4926,7 +4925,7 @@ yyreduce:
case 297:
/* Line 1792 of yacc.c */
-#line 1666 "conf_parser.y"
+#line 1665 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NEED_PASSWORD;
@@ -4935,7 +4934,7 @@ yyreduce:
case 298:
/* Line 1792 of yacc.c */
-#line 1672 "conf_parser.y"
+#line 1671 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -4952,7 +4951,7 @@ yyreduce:
case 299:
/* Line 1792 of yacc.c */
-#line 1686 "conf_parser.y"
+#line 1685 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -4964,7 +4963,7 @@ yyreduce:
case 300:
/* Line 1792 of yacc.c */
-#line 1695 "conf_parser.y"
+#line 1694 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -4976,7 +4975,7 @@ yyreduce:
case 301:
/* Line 1792 of yacc.c */
-#line 1708 "conf_parser.y"
+#line 1707 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -4988,7 +4987,7 @@ yyreduce:
case 309:
/* Line 1792 of yacc.c */
-#line 1720 "conf_parser.y"
+#line 1719 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -4997,7 +4996,7 @@ yyreduce:
case 310:
/* Line 1792 of yacc.c */
-#line 1726 "conf_parser.y"
+#line 1725 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -5009,7 +5008,7 @@ yyreduce:
case 311:
/* Line 1792 of yacc.c */
-#line 1735 "conf_parser.y"
+#line 1734 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
create_nick_resv(yylval.string, block_state.rpass.buf, 1);
@@ -5018,7 +5017,7 @@ yyreduce:
case 317:
/* Line 1792 of yacc.c */
-#line 1749 "conf_parser.y"
+#line 1748 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -5033,7 +5032,7 @@ yyreduce:
case 318:
/* Line 1792 of yacc.c */
-#line 1764 "conf_parser.y"
+#line 1763 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -5049,7 +5048,7 @@ yyreduce:
case 319:
/* Line 1792 of yacc.c */
-#line 1775 "conf_parser.y"
+#line 1774 "conf_parser.y"
{
struct MaskItem *conf = NULL;
@@ -5066,7 +5065,7 @@ yyreduce:
case 326:
/* Line 1792 of yacc.c */
-#line 1792 "conf_parser.y"
+#line 1791 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
@@ -5075,7 +5074,7 @@ yyreduce:
case 327:
/* Line 1792 of yacc.c */
-#line 1798 "conf_parser.y"
+#line 1797 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -5097,7 +5096,7 @@ yyreduce:
case 328:
/* Line 1792 of yacc.c */
-#line 1817 "conf_parser.y"
+#line 1816 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = 0;
@@ -5106,7 +5105,7 @@ yyreduce:
case 332:
/* Line 1792 of yacc.c */
-#line 1824 "conf_parser.y"
+#line 1823 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_KLINE;
@@ -5115,7 +5114,7 @@ yyreduce:
case 333:
/* Line 1792 of yacc.c */
-#line 1828 "conf_parser.y"
+#line 1827 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNKLINE;
@@ -5124,7 +5123,7 @@ yyreduce:
case 334:
/* Line 1792 of yacc.c */
-#line 1832 "conf_parser.y"
+#line 1831 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_DLINE;
@@ -5133,7 +5132,7 @@ yyreduce:
case 335:
/* Line 1792 of yacc.c */
-#line 1836 "conf_parser.y"
+#line 1835 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNDLINE;
@@ -5142,7 +5141,7 @@ yyreduce:
case 336:
/* Line 1792 of yacc.c */
-#line 1840 "conf_parser.y"
+#line 1839 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_XLINE;
@@ -5151,7 +5150,7 @@ yyreduce:
case 337:
/* Line 1792 of yacc.c */
-#line 1844 "conf_parser.y"
+#line 1843 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNXLINE;
@@ -5160,7 +5159,7 @@ yyreduce:
case 338:
/* Line 1792 of yacc.c */
-#line 1848 "conf_parser.y"
+#line 1847 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_RESV;
@@ -5169,7 +5168,7 @@ yyreduce:
case 339:
/* Line 1792 of yacc.c */
-#line 1852 "conf_parser.y"
+#line 1851 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNRESV;
@@ -5178,7 +5177,7 @@ yyreduce:
case 340:
/* Line 1792 of yacc.c */
-#line 1856 "conf_parser.y"
+#line 1855 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_LOCOPS;
@@ -5187,7 +5186,7 @@ yyreduce:
case 341:
/* Line 1792 of yacc.c */
-#line 1860 "conf_parser.y"
+#line 1859 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = SHARED_ALL;
@@ -5196,7 +5195,7 @@ yyreduce:
case 342:
/* Line 1792 of yacc.c */
-#line 1869 "conf_parser.y"
+#line 1868 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -5210,7 +5209,7 @@ yyreduce:
case 343:
/* Line 1792 of yacc.c */
-#line 1878 "conf_parser.y"
+#line 1877 "conf_parser.y"
{
struct MaskItem *conf = NULL;
@@ -5225,7 +5224,7 @@ yyreduce:
case 349:
/* Line 1792 of yacc.c */
-#line 1893 "conf_parser.y"
+#line 1892 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
@@ -5234,7 +5233,7 @@ yyreduce:
case 350:
/* Line 1792 of yacc.c */
-#line 1899 "conf_parser.y"
+#line 1898 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = 0;
@@ -5243,7 +5242,7 @@ yyreduce:
case 354:
/* Line 1792 of yacc.c */
-#line 1906 "conf_parser.y"
+#line 1905 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_KLINE;
@@ -5252,7 +5251,7 @@ yyreduce:
case 355:
/* Line 1792 of yacc.c */
-#line 1910 "conf_parser.y"
+#line 1909 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNKLINE;
@@ -5261,7 +5260,7 @@ yyreduce:
case 356:
/* Line 1792 of yacc.c */
-#line 1914 "conf_parser.y"
+#line 1913 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_DLINE;
@@ -5270,7 +5269,7 @@ yyreduce:
case 357:
/* Line 1792 of yacc.c */
-#line 1918 "conf_parser.y"
+#line 1917 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNDLINE;
@@ -5279,7 +5278,7 @@ yyreduce:
case 358:
/* Line 1792 of yacc.c */
-#line 1922 "conf_parser.y"
+#line 1921 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_XLINE;
@@ -5288,7 +5287,7 @@ yyreduce:
case 359:
/* Line 1792 of yacc.c */
-#line 1926 "conf_parser.y"
+#line 1925 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNXLINE;
@@ -5297,7 +5296,7 @@ yyreduce:
case 360:
/* Line 1792 of yacc.c */
-#line 1930 "conf_parser.y"
+#line 1929 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_RESV;
@@ -5306,7 +5305,7 @@ yyreduce:
case 361:
/* Line 1792 of yacc.c */
-#line 1934 "conf_parser.y"
+#line 1933 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNRESV;
@@ -5315,7 +5314,7 @@ yyreduce:
case 362:
/* Line 1792 of yacc.c */
-#line 1938 "conf_parser.y"
+#line 1937 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_LOCOPS;
@@ -5324,7 +5323,7 @@ yyreduce:
case 363:
/* Line 1792 of yacc.c */
-#line 1942 "conf_parser.y"
+#line 1941 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = SHARED_ALL;
@@ -5333,7 +5332,7 @@ yyreduce:
case 364:
/* Line 1792 of yacc.c */
-#line 1951 "conf_parser.y"
+#line 1950 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
@@ -5346,7 +5345,7 @@ yyreduce:
case 365:
/* Line 1792 of yacc.c */
-#line 1959 "conf_parser.y"
+#line 1958 "conf_parser.y"
{
struct MaskItem *conf = NULL;
struct addrinfo hints, *res;
@@ -5407,7 +5406,7 @@ yyreduce:
case 382:
/* Line 1792 of yacc.c */
-#line 2025 "conf_parser.y"
+#line 2024 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
@@ -5416,7 +5415,7 @@ yyreduce:
case 383:
/* Line 1792 of yacc.c */
-#line 2031 "conf_parser.y"
+#line 2030 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.host.buf, yylval.string, sizeof(block_state.host.buf));
@@ -5425,7 +5424,7 @@ yyreduce:
case 384:
/* Line 1792 of yacc.c */
-#line 2037 "conf_parser.y"
+#line 2036 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.bind.buf, yylval.string, sizeof(block_state.bind.buf));
@@ -5434,7 +5433,7 @@ yyreduce:
case 385:
/* Line 1792 of yacc.c */
-#line 2043 "conf_parser.y"
+#line 2042 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -5450,7 +5449,7 @@ yyreduce:
case 386:
/* Line 1792 of yacc.c */
-#line 2056 "conf_parser.y"
+#line 2055 "conf_parser.y"
{
if (conf_parser_ctx.pass != 2)
break;
@@ -5466,7 +5465,7 @@ yyreduce:
case 387:
/* Line 1792 of yacc.c */
-#line 2069 "conf_parser.y"
+#line 2068 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = (yyvsp[(3) - (4)].number);
@@ -5475,7 +5474,7 @@ yyreduce:
case 388:
/* Line 1792 of yacc.c */
-#line 2075 "conf_parser.y"
+#line 2074 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.aftype.value = AF_INET;
@@ -5484,7 +5483,7 @@ yyreduce:
case 389:
/* Line 1792 of yacc.c */
-#line 2079 "conf_parser.y"
+#line 2078 "conf_parser.y"
{
#ifdef IPV6
if (conf_parser_ctx.pass == 2)
@@ -5495,7 +5494,7 @@ yyreduce:
case 390:
/* Line 1792 of yacc.c */
-#line 2087 "conf_parser.y"
+#line 2086 "conf_parser.y"
{
block_state.flags.value &= CONF_FLAGS_ENCRYPTED;
}
@@ -5503,7 +5502,7 @@ yyreduce:
case 394:
/* Line 1792 of yacc.c */
-#line 2093 "conf_parser.y"
+#line 2092 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_ALLOW_AUTO_CONN;
@@ -5512,7 +5511,7 @@ yyreduce:
case 395:
/* Line 1792 of yacc.c */
-#line 2097 "conf_parser.y"
+#line 2096 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_SSL;
@@ -5521,7 +5520,7 @@ yyreduce:
case 396:
/* Line 1792 of yacc.c */
-#line 2103 "conf_parser.y"
+#line 2102 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -5535,7 +5534,7 @@ yyreduce:
case 397:
/* Line 1792 of yacc.c */
-#line 2114 "conf_parser.y"
+#line 2113 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.hub.list);
@@ -5544,7 +5543,7 @@ yyreduce:
case 398:
/* Line 1792 of yacc.c */
-#line 2120 "conf_parser.y"
+#line 2119 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.leaf.list);
@@ -5553,7 +5552,7 @@ yyreduce:
case 399:
/* Line 1792 of yacc.c */
-#line 2126 "conf_parser.y"
+#line 2125 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
@@ -5562,7 +5561,7 @@ yyreduce:
case 400:
/* Line 1792 of yacc.c */
-#line 2132 "conf_parser.y"
+#line 2131 "conf_parser.y"
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2)
@@ -5576,7 +5575,7 @@ yyreduce:
case 401:
/* Line 1792 of yacc.c */
-#line 2147 "conf_parser.y"
+#line 2146 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -5585,7 +5584,7 @@ yyreduce:
case 402:
/* Line 1792 of yacc.c */
-#line 2151 "conf_parser.y"
+#line 2150 "conf_parser.y"
{
struct MaskItem *conf = NULL;
@@ -5646,7 +5645,7 @@ yyreduce:
case 403:
/* Line 1792 of yacc.c */
-#line 2209 "conf_parser.y"
+#line 2208 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 0;
@@ -5655,7 +5654,7 @@ yyreduce:
case 407:
/* Line 1792 of yacc.c */
-#line 2216 "conf_parser.y"
+#line 2215 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 1;
@@ -5664,7 +5663,7 @@ yyreduce:
case 414:
/* Line 1792 of yacc.c */
-#line 2225 "conf_parser.y"
+#line 2224 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
@@ -5687,7 +5686,7 @@ yyreduce:
case 415:
/* Line 1792 of yacc.c */
-#line 2245 "conf_parser.y"
+#line 2244 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -5696,7 +5695,7 @@ yyreduce:
case 416:
/* Line 1792 of yacc.c */
-#line 2254 "conf_parser.y"
+#line 2253 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -5705,7 +5704,7 @@ yyreduce:
case 417:
/* Line 1792 of yacc.c */
-#line 2258 "conf_parser.y"
+#line 2257 "conf_parser.y"
{
struct MaskItem *conf = NULL;
@@ -5731,7 +5730,7 @@ yyreduce:
case 423:
/* Line 1792 of yacc.c */
-#line 2284 "conf_parser.y"
+#line 2283 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
@@ -5740,7 +5739,7 @@ yyreduce:
case 424:
/* Line 1792 of yacc.c */
-#line 2290 "conf_parser.y"
+#line 2289 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -5749,7 +5748,7 @@ yyreduce:
case 430:
/* Line 1792 of yacc.c */
-#line 2304 "conf_parser.y"
+#line 2303 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -5766,7 +5765,7 @@ yyreduce:
case 431:
/* Line 1792 of yacc.c */
-#line 2321 "conf_parser.y"
+#line 2320 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
@@ -5775,7 +5774,7 @@ yyreduce:
case 432:
/* Line 1792 of yacc.c */
-#line 2325 "conf_parser.y"
+#line 2324 "conf_parser.y"
{
struct MaskItem *conf = NULL;
@@ -5819,7 +5818,7 @@ yyreduce:
case 433:
/* Line 1792 of yacc.c */
-#line 2366 "conf_parser.y"
+#line 2365 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 0;
@@ -5828,7 +5827,7 @@ yyreduce:
case 437:
/* Line 1792 of yacc.c */
-#line 2373 "conf_parser.y"
+#line 2372 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 1;
@@ -5837,7 +5836,7 @@ yyreduce:
case 444:
/* Line 1792 of yacc.c */
-#line 2382 "conf_parser.y"
+#line 2381 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
@@ -5846,7 +5845,7 @@ yyreduce:
case 445:
/* Line 1792 of yacc.c */
-#line 2388 "conf_parser.y"
+#line 2387 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
@@ -5855,7 +5854,7 @@ yyreduce:
case 499:
/* Line 1792 of yacc.c */
-#line 2433 "conf_parser.y"
+#line 2432 "conf_parser.y"
{
ConfigFileEntry.max_watch = (yyvsp[(3) - (4)].number);
}
@@ -5863,7 +5862,7 @@ yyreduce:
case 500:
/* Line 1792 of yacc.c */
-#line 2438 "conf_parser.y"
+#line 2437 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.glines = yylval.number;
@@ -5872,7 +5871,7 @@ yyreduce:
case 501:
/* Line 1792 of yacc.c */
-#line 2444 "conf_parser.y"
+#line 2443 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.gline_time = (yyvsp[(3) - (4)].number);
@@ -5881,7 +5880,7 @@ yyreduce:
case 502:
/* Line 1792 of yacc.c */
-#line 2450 "conf_parser.y"
+#line 2449 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.gline_request_time = (yyvsp[(3) - (4)].number);
@@ -5890,7 +5889,7 @@ yyreduce:
case 503:
/* Line 1792 of yacc.c */
-#line 2456 "conf_parser.y"
+#line 2455 "conf_parser.y"
{
ConfigFileEntry.gline_min_cidr = (yyvsp[(3) - (4)].number);
}
@@ -5898,7 +5897,7 @@ yyreduce:
case 504:
/* Line 1792 of yacc.c */
-#line 2461 "conf_parser.y"
+#line 2460 "conf_parser.y"
{
ConfigFileEntry.gline_min_cidr6 = (yyvsp[(3) - (4)].number);
}
@@ -5906,7 +5905,7 @@ yyreduce:
case 505:
/* Line 1792 of yacc.c */
-#line 2466 "conf_parser.y"
+#line 2465 "conf_parser.y"
{
ConfigFileEntry.tkline_expire_notices = yylval.number;
}
@@ -5914,7 +5913,7 @@ yyreduce:
case 506:
/* Line 1792 of yacc.c */
-#line 2471 "conf_parser.y"
+#line 2470 "conf_parser.y"
{
ConfigFileEntry.kill_chase_time_limit = (yyvsp[(3) - (4)].number);
}
@@ -5922,7 +5921,7 @@ yyreduce:
case 507:
/* Line 1792 of yacc.c */
-#line 2476 "conf_parser.y"
+#line 2475 "conf_parser.y"
{
ConfigFileEntry.hide_spoof_ips = yylval.number;
}
@@ -5930,7 +5929,7 @@ yyreduce:
case 508:
/* Line 1792 of yacc.c */
-#line 2481 "conf_parser.y"
+#line 2480 "conf_parser.y"
{
ConfigFileEntry.ignore_bogus_ts = yylval.number;
}
@@ -5938,7 +5937,7 @@ yyreduce:
case 509:
/* Line 1792 of yacc.c */
-#line 2486 "conf_parser.y"
+#line 2485 "conf_parser.y"
{
ConfigFileEntry.disable_remote = yylval.number;
}
@@ -5946,7 +5945,7 @@ yyreduce:
case 510:
/* Line 1792 of yacc.c */
-#line 2491 "conf_parser.y"
+#line 2490 "conf_parser.y"
{
ConfigFileEntry.failed_oper_notice = yylval.number;
}
@@ -5954,7 +5953,7 @@ yyreduce:
case 511:
/* Line 1792 of yacc.c */
-#line 2496 "conf_parser.y"
+#line 2495 "conf_parser.y"
{
ConfigFileEntry.anti_nick_flood = yylval.number;
}
@@ -5962,7 +5961,7 @@ yyreduce:
case 512:
/* Line 1792 of yacc.c */
-#line 2501 "conf_parser.y"
+#line 2500 "conf_parser.y"
{
ConfigFileEntry.max_nick_time = (yyvsp[(3) - (4)].number);
}
@@ -5970,7 +5969,7 @@ yyreduce:
case 513:
/* Line 1792 of yacc.c */
-#line 2506 "conf_parser.y"
+#line 2505 "conf_parser.y"
{
ConfigFileEntry.max_nick_changes = (yyvsp[(3) - (4)].number);
}
@@ -5978,7 +5977,7 @@ yyreduce:
case 514:
/* Line 1792 of yacc.c */
-#line 2511 "conf_parser.y"
+#line 2510 "conf_parser.y"
{
ConfigFileEntry.max_accept = (yyvsp[(3) - (4)].number);
}
@@ -5986,7 +5985,7 @@ yyreduce:
case 515:
/* Line 1792 of yacc.c */
-#line 2516 "conf_parser.y"
+#line 2515 "conf_parser.y"
{
ConfigFileEntry.anti_spam_exit_message_time = (yyvsp[(3) - (4)].number);
}
@@ -5994,7 +5993,7 @@ yyreduce:
case 516:
/* Line 1792 of yacc.c */
-#line 2521 "conf_parser.y"
+#line 2520 "conf_parser.y"
{
ConfigFileEntry.ts_warn_delta = (yyvsp[(3) - (4)].number);
}
@@ -6002,7 +6001,7 @@ yyreduce:
case 517:
/* Line 1792 of yacc.c */
-#line 2526 "conf_parser.y"
+#line 2525 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.ts_max_delta = (yyvsp[(3) - (4)].number);
@@ -6011,7 +6010,7 @@ yyreduce:
case 518:
/* Line 1792 of yacc.c */
-#line 2532 "conf_parser.y"
+#line 2531 "conf_parser.y"
{
if (((yyvsp[(3) - (4)].number) > 0) && conf_parser_ctx.pass == 1)
{
@@ -6025,7 +6024,7 @@ yyreduce:
case 519:
/* Line 1792 of yacc.c */
-#line 2543 "conf_parser.y"
+#line 2542 "conf_parser.y"
{
ConfigFileEntry.invisible_on_connect = yylval.number;
}
@@ -6033,7 +6032,7 @@ yyreduce:
case 520:
/* Line 1792 of yacc.c */
-#line 2548 "conf_parser.y"
+#line 2547 "conf_parser.y"
{
ConfigFileEntry.warn_no_nline = yylval.number;
}
@@ -6041,7 +6040,7 @@ yyreduce:
case 521:
/* Line 1792 of yacc.c */
-#line 2553 "conf_parser.y"
+#line 2552 "conf_parser.y"
{
ConfigFileEntry.stats_e_disabled = yylval.number;
}
@@ -6049,7 +6048,7 @@ yyreduce:
case 522:
/* Line 1792 of yacc.c */
-#line 2558 "conf_parser.y"
+#line 2557 "conf_parser.y"
{
ConfigFileEntry.stats_o_oper_only = yylval.number;
}
@@ -6057,7 +6056,7 @@ yyreduce:
case 523:
/* Line 1792 of yacc.c */
-#line 2563 "conf_parser.y"
+#line 2562 "conf_parser.y"
{
ConfigFileEntry.stats_P_oper_only = yylval.number;
}
@@ -6065,7 +6064,7 @@ yyreduce:
case 524:
/* Line 1792 of yacc.c */
-#line 2568 "conf_parser.y"
+#line 2567 "conf_parser.y"
{
ConfigFileEntry.stats_k_oper_only = 2 * yylval.number;
}
@@ -6073,7 +6072,7 @@ yyreduce:
case 525:
/* Line 1792 of yacc.c */
-#line 2571 "conf_parser.y"
+#line 2570 "conf_parser.y"
{
ConfigFileEntry.stats_k_oper_only = 1;
}
@@ -6081,7 +6080,7 @@ yyreduce:
case 526:
/* Line 1792 of yacc.c */
-#line 2576 "conf_parser.y"
+#line 2575 "conf_parser.y"
{
ConfigFileEntry.stats_i_oper_only = 2 * yylval.number;
}
@@ -6089,7 +6088,7 @@ yyreduce:
case 527:
/* Line 1792 of yacc.c */
-#line 2579 "conf_parser.y"
+#line 2578 "conf_parser.y"
{
ConfigFileEntry.stats_i_oper_only = 1;
}
@@ -6097,7 +6096,7 @@ yyreduce:
case 528:
/* Line 1792 of yacc.c */
-#line 2584 "conf_parser.y"
+#line 2583 "conf_parser.y"
{
ConfigFileEntry.pace_wait = (yyvsp[(3) - (4)].number);
}
@@ -6105,7 +6104,7 @@ yyreduce:
case 529:
/* Line 1792 of yacc.c */
-#line 2589 "conf_parser.y"
+#line 2588 "conf_parser.y"
{
ConfigFileEntry.caller_id_wait = (yyvsp[(3) - (4)].number);
}
@@ -6113,7 +6112,7 @@ yyreduce:
case 530:
/* Line 1792 of yacc.c */
-#line 2594 "conf_parser.y"
+#line 2593 "conf_parser.y"
{
ConfigFileEntry.opers_bypass_callerid = yylval.number;
}
@@ -6121,7 +6120,7 @@ yyreduce:
case 531:
/* Line 1792 of yacc.c */
-#line 2599 "conf_parser.y"
+#line 2598 "conf_parser.y"
{
ConfigFileEntry.pace_wait_simple = (yyvsp[(3) - (4)].number);
}
@@ -6129,7 +6128,7 @@ yyreduce:
case 532:
/* Line 1792 of yacc.c */
-#line 2604 "conf_parser.y"
+#line 2603 "conf_parser.y"
{
ConfigFileEntry.short_motd = yylval.number;
}
@@ -6137,7 +6136,7 @@ yyreduce:
case 533:
/* Line 1792 of yacc.c */
-#line 2609 "conf_parser.y"
+#line 2608 "conf_parser.y"
{
ConfigFileEntry.no_oper_flood = yylval.number;
}
@@ -6145,7 +6144,7 @@ yyreduce:
case 534:
/* Line 1792 of yacc.c */
-#line 2614 "conf_parser.y"
+#line 2613 "conf_parser.y"
{
ConfigFileEntry.true_no_oper_flood = yylval.number;
}
@@ -6153,7 +6152,7 @@ yyreduce:
case 535:
/* Line 1792 of yacc.c */
-#line 2619 "conf_parser.y"
+#line 2618 "conf_parser.y"
{
ConfigFileEntry.oper_pass_resv = yylval.number;
}
@@ -6161,7 +6160,7 @@ yyreduce:
case 536:
/* Line 1792 of yacc.c */
-#line 2624 "conf_parser.y"
+#line 2623 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -6175,7 +6174,7 @@ yyreduce:
case 537:
/* Line 1792 of yacc.c */
-#line 2635 "conf_parser.y"
+#line 2634 "conf_parser.y"
{
ConfigFileEntry.dots_in_ident = (yyvsp[(3) - (4)].number);
}
@@ -6183,7 +6182,7 @@ yyreduce:
case 538:
/* Line 1792 of yacc.c */
-#line 2640 "conf_parser.y"
+#line 2639 "conf_parser.y"
{
ConfigFileEntry.max_targets = (yyvsp[(3) - (4)].number);
}
@@ -6191,7 +6190,7 @@ yyreduce:
case 539:
/* Line 1792 of yacc.c */
-#line 2645 "conf_parser.y"
+#line 2644 "conf_parser.y"
{
ConfigFileEntry.use_egd = yylval.number;
}
@@ -6199,7 +6198,7 @@ yyreduce:
case 540:
/* Line 1792 of yacc.c */
-#line 2650 "conf_parser.y"
+#line 2649 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -6211,7 +6210,7 @@ yyreduce:
case 541:
/* Line 1792 of yacc.c */
-#line 2659 "conf_parser.y"
+#line 2658 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2 && valid_servname(yylval.string))
{
@@ -6223,7 +6222,7 @@ yyreduce:
case 542:
/* Line 1792 of yacc.c */
-#line 2668 "conf_parser.y"
+#line 2667 "conf_parser.y"
{
ConfigFileEntry.ping_cookie = yylval.number;
}
@@ -6231,7 +6230,7 @@ yyreduce:
case 543:
/* Line 1792 of yacc.c */
-#line 2673 "conf_parser.y"
+#line 2672 "conf_parser.y"
{
ConfigFileEntry.disable_auth = yylval.number;
}
@@ -6239,7 +6238,7 @@ yyreduce:
case 544:
/* Line 1792 of yacc.c */
-#line 2678 "conf_parser.y"
+#line 2677 "conf_parser.y"
{
ConfigFileEntry.throttle_time = yylval.number;
}
@@ -6247,7 +6246,7 @@ yyreduce:
case 545:
/* Line 1792 of yacc.c */
-#line 2683 "conf_parser.y"
+#line 2682 "conf_parser.y"
{
ConfigFileEntry.oper_umodes = 0;
}
@@ -6255,7 +6254,7 @@ yyreduce:
case 549:
/* Line 1792 of yacc.c */
-#line 2689 "conf_parser.y"
+#line 2688 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_BOTS;
}
@@ -6263,7 +6262,7 @@ yyreduce:
case 550:
/* Line 1792 of yacc.c */
-#line 2692 "conf_parser.y"
+#line 2691 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_CCONN;
}
@@ -6271,7 +6270,7 @@ yyreduce:
case 551:
/* Line 1792 of yacc.c */
-#line 2695 "conf_parser.y"
+#line 2694 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_CCONN_FULL;
}
@@ -6279,7 +6278,7 @@ yyreduce:
case 552:
/* Line 1792 of yacc.c */
-#line 2698 "conf_parser.y"
+#line 2697 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_DEAF;
}
@@ -6287,7 +6286,7 @@ yyreduce:
case 553:
/* Line 1792 of yacc.c */
-#line 2701 "conf_parser.y"
+#line 2700 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_DEBUG;
}
@@ -6295,7 +6294,7 @@ yyreduce:
case 554:
/* Line 1792 of yacc.c */
-#line 2704 "conf_parser.y"
+#line 2703 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_FULL;
}
@@ -6303,7 +6302,7 @@ yyreduce:
case 555:
/* Line 1792 of yacc.c */
-#line 2707 "conf_parser.y"
+#line 2706 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_HIDDEN;
}
@@ -6311,7 +6310,7 @@ yyreduce:
case 556:
/* Line 1792 of yacc.c */
-#line 2710 "conf_parser.y"
+#line 2709 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_SKILL;
}
@@ -6319,7 +6318,7 @@ yyreduce:
case 557:
/* Line 1792 of yacc.c */
-#line 2713 "conf_parser.y"
+#line 2712 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_NCHANGE;
}
@@ -6327,7 +6326,7 @@ yyreduce:
case 558:
/* Line 1792 of yacc.c */
-#line 2716 "conf_parser.y"
+#line 2715 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_REJ;
}
@@ -6335,7 +6334,7 @@ yyreduce:
case 559:
/* Line 1792 of yacc.c */
-#line 2719 "conf_parser.y"
+#line 2718 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_UNAUTH;
}
@@ -6343,7 +6342,7 @@ yyreduce:
case 560:
/* Line 1792 of yacc.c */
-#line 2722 "conf_parser.y"
+#line 2721 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_SPY;
}
@@ -6351,7 +6350,7 @@ yyreduce:
case 561:
/* Line 1792 of yacc.c */
-#line 2725 "conf_parser.y"
+#line 2724 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_EXTERNAL;
}
@@ -6359,7 +6358,7 @@ yyreduce:
case 562:
/* Line 1792 of yacc.c */
-#line 2728 "conf_parser.y"
+#line 2727 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_OPERWALL;
}
@@ -6367,7 +6366,7 @@ yyreduce:
case 563:
/* Line 1792 of yacc.c */
-#line 2731 "conf_parser.y"
+#line 2730 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_SERVNOTICE;
}
@@ -6375,7 +6374,7 @@ yyreduce:
case 564:
/* Line 1792 of yacc.c */
-#line 2734 "conf_parser.y"
+#line 2733 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_INVISIBLE;
}
@@ -6383,7 +6382,7 @@ yyreduce:
case 565:
/* Line 1792 of yacc.c */
-#line 2737 "conf_parser.y"
+#line 2736 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_WALLOP;
}
@@ -6391,7 +6390,7 @@ yyreduce:
case 566:
/* Line 1792 of yacc.c */
-#line 2740 "conf_parser.y"
+#line 2739 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_SOFTCALLERID;
}
@@ -6399,7 +6398,7 @@ yyreduce:
case 567:
/* Line 1792 of yacc.c */
-#line 2743 "conf_parser.y"
+#line 2742 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_CALLERID;
}
@@ -6407,7 +6406,7 @@ yyreduce:
case 568:
/* Line 1792 of yacc.c */
-#line 2746 "conf_parser.y"
+#line 2745 "conf_parser.y"
{
ConfigFileEntry.oper_umodes |= UMODE_LOCOPS;
}
@@ -6415,7 +6414,7 @@ yyreduce:
case 569:
/* Line 1792 of yacc.c */
-#line 2751 "conf_parser.y"
+#line 2750 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes = 0;
}
@@ -6423,7 +6422,7 @@ yyreduce:
case 573:
/* Line 1792 of yacc.c */
-#line 2757 "conf_parser.y"
+#line 2756 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_BOTS;
}
@@ -6431,7 +6430,7 @@ yyreduce:
case 574:
/* Line 1792 of yacc.c */
-#line 2760 "conf_parser.y"
+#line 2759 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_CCONN;
}
@@ -6439,7 +6438,7 @@ yyreduce:
case 575:
/* Line 1792 of yacc.c */
-#line 2763 "conf_parser.y"
+#line 2762 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_CCONN_FULL;
}
@@ -6447,7 +6446,7 @@ yyreduce:
case 576:
/* Line 1792 of yacc.c */
-#line 2766 "conf_parser.y"
+#line 2765 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_DEAF;
}
@@ -6455,7 +6454,7 @@ yyreduce:
case 577:
/* Line 1792 of yacc.c */
-#line 2769 "conf_parser.y"
+#line 2768 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_DEBUG;
}
@@ -6463,7 +6462,7 @@ yyreduce:
case 578:
/* Line 1792 of yacc.c */
-#line 2772 "conf_parser.y"
+#line 2771 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_FULL;
}
@@ -6471,7 +6470,7 @@ yyreduce:
case 579:
/* Line 1792 of yacc.c */
-#line 2775 "conf_parser.y"
+#line 2774 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_SKILL;
}
@@ -6479,7 +6478,7 @@ yyreduce:
case 580:
/* Line 1792 of yacc.c */
-#line 2778 "conf_parser.y"
+#line 2777 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_HIDDEN;
}
@@ -6487,7 +6486,7 @@ yyreduce:
case 581:
/* Line 1792 of yacc.c */
-#line 2781 "conf_parser.y"
+#line 2780 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_NCHANGE;
}
@@ -6495,7 +6494,7 @@ yyreduce:
case 582:
/* Line 1792 of yacc.c */
-#line 2784 "conf_parser.y"
+#line 2783 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_REJ;
}
@@ -6503,7 +6502,7 @@ yyreduce:
case 583:
/* Line 1792 of yacc.c */
-#line 2787 "conf_parser.y"
+#line 2786 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_UNAUTH;
}
@@ -6511,7 +6510,7 @@ yyreduce:
case 584:
/* Line 1792 of yacc.c */
-#line 2790 "conf_parser.y"
+#line 2789 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_SPY;
}
@@ -6519,7 +6518,7 @@ yyreduce:
case 585:
/* Line 1792 of yacc.c */
-#line 2793 "conf_parser.y"
+#line 2792 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_EXTERNAL;
}
@@ -6527,7 +6526,7 @@ yyreduce:
case 586:
/* Line 1792 of yacc.c */
-#line 2796 "conf_parser.y"
+#line 2795 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_OPERWALL;
}
@@ -6535,7 +6534,7 @@ yyreduce:
case 587:
/* Line 1792 of yacc.c */
-#line 2799 "conf_parser.y"
+#line 2798 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_SERVNOTICE;
}
@@ -6543,7 +6542,7 @@ yyreduce:
case 588:
/* Line 1792 of yacc.c */
-#line 2802 "conf_parser.y"
+#line 2801 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_INVISIBLE;
}
@@ -6551,7 +6550,7 @@ yyreduce:
case 589:
/* Line 1792 of yacc.c */
-#line 2805 "conf_parser.y"
+#line 2804 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_WALLOP;
}
@@ -6559,7 +6558,7 @@ yyreduce:
case 590:
/* Line 1792 of yacc.c */
-#line 2808 "conf_parser.y"
+#line 2807 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_SOFTCALLERID;
}
@@ -6567,7 +6566,7 @@ yyreduce:
case 591:
/* Line 1792 of yacc.c */
-#line 2811 "conf_parser.y"
+#line 2810 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_CALLERID;
}
@@ -6575,7 +6574,7 @@ yyreduce:
case 592:
/* Line 1792 of yacc.c */
-#line 2814 "conf_parser.y"
+#line 2813 "conf_parser.y"
{
ConfigFileEntry.oper_only_umodes |= UMODE_LOCOPS;
}
@@ -6583,7 +6582,7 @@ yyreduce:
case 593:
/* Line 1792 of yacc.c */
-#line 2819 "conf_parser.y"
+#line 2818 "conf_parser.y"
{
ConfigFileEntry.min_nonwildcard = (yyvsp[(3) - (4)].number);
}
@@ -6591,7 +6590,7 @@ yyreduce:
case 594:
/* Line 1792 of yacc.c */
-#line 2824 "conf_parser.y"
+#line 2823 "conf_parser.y"
{
ConfigFileEntry.min_nonwildcard_simple = (yyvsp[(3) - (4)].number);
}
@@ -6599,7 +6598,7 @@ yyreduce:
case 595:
/* Line 1792 of yacc.c */
-#line 2829 "conf_parser.y"
+#line 2828 "conf_parser.y"
{
ConfigFileEntry.default_floodcount = (yyvsp[(3) - (4)].number);
}
@@ -6607,7 +6606,7 @@ yyreduce:
case 614:
/* Line 1792 of yacc.c */
-#line 2852 "conf_parser.y"
+#line 2851 "conf_parser.y"
{
ConfigChannel.disable_fake_channels = yylval.number;
}
@@ -6615,7 +6614,7 @@ yyreduce:
case 615:
/* Line 1792 of yacc.c */
-#line 2857 "conf_parser.y"
+#line 2856 "conf_parser.y"
{
ConfigChannel.restrict_channels = yylval.number;
}
@@ -6623,7 +6622,7 @@ yyreduce:
case 616:
/* Line 1792 of yacc.c */
-#line 2862 "conf_parser.y"
+#line 2861 "conf_parser.y"
{
ConfigChannel.knock_delay = (yyvsp[(3) - (4)].number);
}
@@ -6631,7 +6630,7 @@ yyreduce:
case 617:
/* Line 1792 of yacc.c */
-#line 2867 "conf_parser.y"
+#line 2866 "conf_parser.y"
{
ConfigChannel.knock_delay_channel = (yyvsp[(3) - (4)].number);
}
@@ -6639,7 +6638,7 @@ yyreduce:
case 618:
/* Line 1792 of yacc.c */
-#line 2872 "conf_parser.y"
+#line 2871 "conf_parser.y"
{
ConfigChannel.max_chans_per_user = (yyvsp[(3) - (4)].number);
}
@@ -6647,7 +6646,7 @@ yyreduce:
case 619:
/* Line 1792 of yacc.c */
-#line 2877 "conf_parser.y"
+#line 2876 "conf_parser.y"
{
ConfigChannel.max_chans_per_oper = (yyvsp[(3) - (4)].number);
}
@@ -6655,7 +6654,7 @@ yyreduce:
case 620:
/* Line 1792 of yacc.c */
-#line 2882 "conf_parser.y"
+#line 2881 "conf_parser.y"
{
ConfigChannel.quiet_on_ban = yylval.number;
}
@@ -6663,7 +6662,7 @@ yyreduce:
case 621:
/* Line 1792 of yacc.c */
-#line 2887 "conf_parser.y"
+#line 2886 "conf_parser.y"
{
ConfigChannel.max_bans = (yyvsp[(3) - (4)].number);
}
@@ -6671,7 +6670,7 @@ yyreduce:
case 622:
/* Line 1792 of yacc.c */
-#line 2892 "conf_parser.y"
+#line 2891 "conf_parser.y"
{
ConfigChannel.default_split_user_count = (yyvsp[(3) - (4)].number);
}
@@ -6679,7 +6678,7 @@ yyreduce:
case 623:
/* Line 1792 of yacc.c */
-#line 2897 "conf_parser.y"
+#line 2896 "conf_parser.y"
{
ConfigChannel.default_split_server_count = (yyvsp[(3) - (4)].number);
}
@@ -6687,7 +6686,7 @@ yyreduce:
case 624:
/* Line 1792 of yacc.c */
-#line 2902 "conf_parser.y"
+#line 2901 "conf_parser.y"
{
ConfigChannel.no_create_on_split = yylval.number;
}
@@ -6695,7 +6694,7 @@ yyreduce:
case 625:
/* Line 1792 of yacc.c */
-#line 2907 "conf_parser.y"
+#line 2906 "conf_parser.y"
{
ConfigChannel.no_join_on_split = yylval.number;
}
@@ -6703,7 +6702,7 @@ yyreduce:
case 626:
/* Line 1792 of yacc.c */
-#line 2912 "conf_parser.y"
+#line 2911 "conf_parser.y"
{
GlobalSetOptions.joinfloodcount = yylval.number;
}
@@ -6711,7 +6710,7 @@ yyreduce:
case 627:
/* Line 1792 of yacc.c */
-#line 2917 "conf_parser.y"
+#line 2916 "conf_parser.y"
{
GlobalSetOptions.joinfloodtime = yylval.number;
}
@@ -6719,7 +6718,7 @@ yyreduce:
case 638:
/* Line 1792 of yacc.c */
-#line 2935 "conf_parser.y"
+#line 2934 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.flatten_links = yylval.number;
@@ -6728,7 +6727,7 @@ yyreduce:
case 639:
/* Line 1792 of yacc.c */
-#line 2941 "conf_parser.y"
+#line 2940 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hide_servers = yylval.number;
@@ -6737,7 +6736,7 @@ yyreduce:
case 640:
/* Line 1792 of yacc.c */
-#line 2947 "conf_parser.y"
+#line 2946 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -6749,7 +6748,7 @@ yyreduce:
case 641:
/* Line 1792 of yacc.c */
-#line 2956 "conf_parser.y"
+#line 2955 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
{
@@ -6766,7 +6765,7 @@ yyreduce:
case 642:
/* Line 1792 of yacc.c */
-#line 2970 "conf_parser.y"
+#line 2969 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hidden = yylval.number;
@@ -6775,7 +6774,7 @@ yyreduce:
case 643:
/* Line 1792 of yacc.c */
-#line 2976 "conf_parser.y"
+#line 2975 "conf_parser.y"
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hide_server_ips = yylval.number;
@@ -6784,7 +6783,7 @@ yyreduce:
/* Line 1792 of yacc.c */
-#line 6788 "conf_parser.c"
+#line 6787 "conf_parser.c"
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
diff --git a/src/conf_parser.h b/src/conf_parser.h
index b0ab8be..b60977e 100644
--- a/src/conf_parser.h
+++ b/src/conf_parser.h
@@ -496,7 +496,7 @@ extern int yydebug;
typedef union YYSTYPE
{
/* Line 2058 of yacc.c */
-#line 139 "conf_parser.y"
+#line 138 "conf_parser.y"
int number;
char *string;
diff --git a/src/conf_parser.y b/src/conf_parser.y
index b5a79b4..d71324b 100644
--- a/src/conf_parser.y
+++ b/src/conf_parser.y
@@ -38,7 +38,6 @@
#include "log.h"
#include "client.h" /* for UMODE_ALL only */
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "memory.h"
#include "modules.h"
#include "s_serv.h"
diff --git a/src/irc_res.c b/src/irc_res.c
index 2963ee1..c7577c3 100644
--- a/src/irc_res.c
+++ b/src/irc_res.c
@@ -24,7 +24,6 @@
#include "client.h"
#include "event.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "rng_mt.h"
diff --git a/src/irc_string.c b/src/irc_string.c
index 08b4321..8a97ba8 100644
--- a/src/irc_string.c
+++ b/src/irc_string.c
@@ -29,7 +29,6 @@
#include "stdinc.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
int
diff --git a/src/listener.c b/src/listener.c
index c47ec1f..2486980 100644
--- a/src/listener.c
+++ b/src/listener.c
@@ -28,7 +28,6 @@
#include "client.h"
#include "fdlist.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "ircd_defs.h"
#include "s_bsd.h"
diff --git a/src/motd.c b/src/motd.c
index a4c2612..62293e4 100644
--- a/src/motd.c
+++ b/src/motd.c
@@ -33,7 +33,6 @@
#include "numeric.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "memory.h"
#include "s_serv.h"
@@ -162,13 +161,13 @@ read_message_file(MessageFile *MessageFileptr)
local_tm = localtime(&sb.st_mtime);
if (local_tm)
- ircsprintf(MessageFileptr->lastChangedDate,
- "%d/%d/%d %d:%02d",
- local_tm->tm_mday,
- local_tm->tm_mon + 1,
- 1900 + local_tm->tm_year,
- local_tm->tm_hour,
- local_tm->tm_min);
+ sprintf(MessageFileptr->lastChangedDate,
+ "%d/%d/%d %d:%02d",
+ local_tm->tm_mday,
+ local_tm->tm_mon + 1,
+ 1900 + local_tm->tm_year,
+ local_tm->tm_hour,
+ local_tm->tm_min);
if ((file = fopen(MessageFileptr->fileName, "r")) == NULL)
return(-1);
diff --git a/src/parse.c b/src/parse.c
index 425690f..019d861 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -28,7 +28,6 @@
#include "channel.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "log.h"
diff --git a/src/s_misc.c b/src/s_misc.c
index 1b6166b..edb04bf 100644
--- a/src/s_misc.c
+++ b/src/s_misc.c
@@ -26,7 +26,6 @@
#include "s_misc.h"
#include "client.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "numeric.h"
#include "irc_res.h"
diff --git a/src/s_serv.c b/src/s_serv.c
index c83b54d..7d57988 100644
--- a/src/s_serv.c
+++ b/src/s_serv.c
@@ -36,7 +36,6 @@
#include "fdlist.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "ircd.h"
#include "ircd_defs.h"
#include "s_bsd.h"
@@ -545,7 +544,7 @@ send_capabilities(struct Client *client_p, int cap_can_send)
if (cap->cap & (cap_can_send|default_server_capabs))
{
- tl = ircsprintf(t, "%s ", cap->name);
+ tl = sprintf(t, "%s ", cap->name);
t += tl;
}
}
@@ -634,14 +633,14 @@ show_capabilities(struct Client *target_p)
char *t = msgbuf;
dlink_node *ptr;
- t += ircsprintf(msgbuf, "TS ");
+ t += sprintf(msgbuf, "TS ");
DLINK_FOREACH(ptr, cap_list.head)
{
const struct Capability *cap = ptr->data;
if (IsCapable(target_p, cap->cap))
- t += ircsprintf(t, "%s ", cap->name);
+ t += sprintf(t, "%s ", cap->name);
}
*(t - 1) = '\0';
diff --git a/src/s_user.c b/src/s_user.c
index f277d16..b2c7911 100644
--- a/src/s_user.c
+++ b/src/s_user.c
@@ -32,7 +32,6 @@
#include "fdlist.h"
#include "hash.h"
#include "irc_string.h"
-#include "sprintf_irc.h"
#include "s_bsd.h"
#include "ircd.h"
#include "listener.h"
@@ -1441,18 +1440,18 @@ rebuild_isupport_message_line(void)
{
struct Isupport *support = ptr->data;
- p += (n = ircsprintf(p, "%s", support->name));
+ p += (n = sprintf(p, "%s", support->name));
len += n;
if (support->options != NULL)
{
- p += (n = ircsprintf(p, "=%s", support->options));
+ p += (n = sprintf(p, "=%s", support->options));
len += n;
}
if (support->number > 0)
{
- p += (n = ircsprintf(p, "=%d", support->number));
+ p += (n = sprintf(p, "=%d", support->number));
len += n;
}
diff --git a/src/send.c b/src/send.c
index 5c6e8a6..2c2b729 100644
--- a/src/send.c
+++ b/src/send.c
@@ -34,7 +34,6 @@
#include "fdlist.h"
#include "s_bsd.h"
#include "s_serv.h"
-#include "sprintf_irc.h"
#include "conf.h"
#include "log.h"
#include "memory.h"
@@ -379,15 +378,15 @@ sendto_channel_butone(struct Client *one, struct Client *from,
dlink_node *ptr = NULL, *ptr_next = NULL;
if (IsServer(from))
- local_len = ircsprintf(local_buf, ":%s ",
- from->name);
+ local_len = sprintf(local_buf, ":%s ",
+ from->name);
else
- local_len = ircsprintf(local_buf, ":%s!%s@%s ",
- from->name, from->username, from->host);
- remote_len = ircsprintf(remote_buf, ":%s ",
+ local_len = sprintf(local_buf, ":%s!%s@%s ",
+ from->name, from->username, from->host);
+ remote_len = sprintf(remote_buf, ":%s ",
from->name);
- uid_len = ircsprintf(uid_buf, ":%s ",
- ID(from));
+ uid_len = sprintf(uid_buf, ":%s ",
+ ID(from));
va_start(alocal, pattern);
va_start(aremote, pattern);
@@ -734,9 +733,9 @@ sendto_match_butone(struct Client *one, struct Client *from, char *mask,
struct Client *client_p;
dlink_node *ptr, *ptr_next;
char local_buf[IRCD_BUFSIZE], remote_buf[IRCD_BUFSIZE];
- int local_len = ircsprintf(local_buf, ":%s!%s@%s ", from->name,
- from->username, from->host);
- int remote_len = ircsprintf(remote_buf, ":%s ", from->name);
+ int local_len = sprintf(local_buf, ":%s!%s@%s ", from->name,
+ from->username, from->host);
+ int remote_len = sprintf(remote_buf, ":%s ", from->name);
va_start(alocal, pattern);
va_start(aremote, pattern);
@@ -870,15 +869,15 @@ sendto_anywhere(struct Client *to, struct Client *from,
if (IsServer(from))
{
if (IsCapable(to, CAP_TS6) && HasID(from))
- len = ircsprintf(buffer, ":%s ", from->id);
+ len = sprintf(buffer, ":%s ", from->id);
else
- len = ircsprintf(buffer, ":%s ", from->name);
+ len = sprintf(buffer, ":%s ", from->name);
}
else
- len = ircsprintf(buffer, ":%s!%s@%s ",
+ len = sprintf(buffer, ":%s!%s@%s ",
from->name, from->username, from->host);
}
- else len = ircsprintf(buffer, ":%s ", ID_or_name(from, send_to));
+ else len = sprintf(buffer, ":%s ", ID_or_name(from, send_to));
va_start(args, pattern);
len += send_format(&buffer[len], IRCD_BUFSIZE - len, pattern, args);
@@ -962,10 +961,10 @@ sendto_wallops_flags(unsigned int flags, struct Client *source_p,
int len;
if (IsClient(source_p))
- len = ircsprintf(buffer, ":%s!%s@%s WALLOPS :",
- source_p->name, source_p->username, source_p->host);
+ len = sprintf(buffer, ":%s!%s@%s WALLOPS :",
+ source_p->name, source_p->username, source_p->host);
else
- len = ircsprintf(buffer, ":%s WALLOPS :", source_p->name);
+ len = sprintf(buffer, ":%s WALLOPS :", source_p->name);
va_start(args, pattern);
len += send_format(&buffer[len], IRCD_BUFSIZE - len, pattern, args);
@@ -1043,8 +1042,8 @@ kill_client(struct Client *client_p, struct Client *diedie,
if (IsDead(client_p))
return;
- len = ircsprintf(buffer, ":%s KILL %s :", ID_or_name(&me, client_p->from),
- ID_or_name(diedie, client_p));
+ len = sprintf(buffer, ":%s KILL %s :", ID_or_name(&me, client_p->from),
+ ID_or_name(diedie, client_p));
va_start(args, pattern);
len += send_format(&buffer[len], IRCD_BUFSIZE - len, pattern, args);
@@ -1077,14 +1076,14 @@ kill_client_ll_serv_butone(struct Client *one, struct Client *source_p,
{
have_uid = 1;
va_start(args, pattern);
- len_uid = ircsprintf(buf_uid, ":%s KILL %s :", me.id, ID(source_p));
+ len_uid = sprintf(buf_uid, ":%s KILL %s :", me.id, ID(source_p));
len_uid += send_format(&buf_uid[len_uid], IRCD_BUFSIZE - len_uid, pattern,
args);
va_end(args);
}
va_start(args, pattern);
- len_nick = ircsprintf(buf_nick, ":%s KILL %s :", me.name, source_p->name);
+ len_nick = sprintf(buf_nick, ":%s KILL %s :", me.name, source_p->name);
len_nick += send_format(&buf_nick[len_nick], IRCD_BUFSIZE - len_nick, pattern,
args);
va_end(args);
diff --git a/src/sprintf_irc.c b/src/sprintf_irc.c
deleted file mode 100644
index 8a3ea56..0000000
--- a/src/sprintf_irc.c
+++ /dev/null
@@ -1,472 +0,0 @@
-/*
- * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
- * sprintf_irc.c: Functions for printing to a string.
- *
- * Copyright (C) 2002 by the past and present ircd coders, and others.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * $Id$
- */
-
-#include "stdinc.h"
-#include "sprintf_irc.h"
-#include "irc_string.h"
-
-
-static const char atoi_tab[4000] = {
- '0','0','0',0, '0','0','1',0, '0','0','2',0, '0','0','3',0, '0','0','4',0,
- '0','0','5',0, '0','0','6',0, '0','0','7',0, '0','0','8',0, '0','0','9',0,
- '0','1','0',0, '0','1','1',0, '0','1','2',0, '0','1','3',0, '0','1','4',0,
- '0','1','5',0, '0','1','6',0, '0','1','7',0, '0','1','8',0, '0','1','9',0,
- '0','2','0',0, '0','2','1',0, '0','2','2',0, '0','2','3',0, '0','2','4',0,
- '0','2','5',0, '0','2','6',0, '0','2','7',0, '0','2','8',0, '0','2','9',0,
- '0','3','0',0, '0','3','1',0, '0','3','2',0, '0','3','3',0, '0','3','4',0,
- '0','3','5',0, '0','3','6',0, '0','3','7',0, '0','3','8',0, '0','3','9',0,
- '0','4','0',0, '0','4','1',0, '0','4','2',0, '0','4','3',0, '0','4','4',0,
- '0','4','5',0, '0','4','6',0, '0','4','7',0, '0','4','8',0, '0','4','9',0,
- '0','5','0',0, '0','5','1',0, '0','5','2',0, '0','5','3',0, '0','5','4',0,
- '0','5','5',0, '0','5','6',0, '0','5','7',0, '0','5','8',0, '0','5','9',0,
- '0','6','0',0, '0','6','1',0, '0','6','2',0, '0','6','3',0, '0','6','4',0,
- '0','6','5',0, '0','6','6',0, '0','6','7',0, '0','6','8',0, '0','6','9',0,
- '0','7','0',0, '0','7','1',0, '0','7','2',0, '0','7','3',0, '0','7','4',0,
- '0','7','5',0, '0','7','6',0, '0','7','7',0, '0','7','8',0, '0','7','9',0,
- '0','8','0',0, '0','8','1',0, '0','8','2',0, '0','8','3',0, '0','8','4',0,
- '0','8','5',0, '0','8','6',0, '0','8','7',0, '0','8','8',0, '0','8','9',0,
- '0','9','0',0, '0','9','1',0, '0','9','2',0, '0','9','3',0, '0','9','4',0,
- '0','9','5',0, '0','9','6',0, '0','9','7',0, '0','9','8',0, '0','9','9',0,
- '1','0','0',0, '1','0','1',0, '1','0','2',0, '1','0','3',0, '1','0','4',0,
- '1','0','5',0, '1','0','6',0, '1','0','7',0, '1','0','8',0, '1','0','9',0,
- '1','1','0',0, '1','1','1',0, '1','1','2',0, '1','1','3',0, '1','1','4',0,
- '1','1','5',0, '1','1','6',0, '1','1','7',0, '1','1','8',0, '1','1','9',0,
- '1','2','0',0, '1','2','1',0, '1','2','2',0, '1','2','3',0, '1','2','4',0,
- '1','2','5',0, '1','2','6',0, '1','2','7',0, '1','2','8',0, '1','2','9',0,
- '1','3','0',0, '1','3','1',0, '1','3','2',0, '1','3','3',0, '1','3','4',0,
- '1','3','5',0, '1','3','6',0, '1','3','7',0, '1','3','8',0, '1','3','9',0,
- '1','4','0',0, '1','4','1',0, '1','4','2',0, '1','4','3',0, '1','4','4',0,
- '1','4','5',0, '1','4','6',0, '1','4','7',0, '1','4','8',0, '1','4','9',0,
- '1','5','0',0, '1','5','1',0, '1','5','2',0, '1','5','3',0, '1','5','4',0,
- '1','5','5',0, '1','5','6',0, '1','5','7',0, '1','5','8',0, '1','5','9',0,
- '1','6','0',0, '1','6','1',0, '1','6','2',0, '1','6','3',0, '1','6','4',0,
- '1','6','5',0, '1','6','6',0, '1','6','7',0, '1','6','8',0, '1','6','9',0,
- '1','7','0',0, '1','7','1',0, '1','7','2',0, '1','7','3',0, '1','7','4',0,
- '1','7','5',0, '1','7','6',0, '1','7','7',0, '1','7','8',0, '1','7','9',0,
- '1','8','0',0, '1','8','1',0, '1','8','2',0, '1','8','3',0, '1','8','4',0,
- '1','8','5',0, '1','8','6',0, '1','8','7',0, '1','8','8',0, '1','8','9',0,
- '1','9','0',0, '1','9','1',0, '1','9','2',0, '1','9','3',0, '1','9','4',0,
- '1','9','5',0, '1','9','6',0, '1','9','7',0, '1','9','8',0, '1','9','9',0,
- '2','0','0',0, '2','0','1',0, '2','0','2',0, '2','0','3',0, '2','0','4',0,
- '2','0','5',0, '2','0','6',0, '2','0','7',0, '2','0','8',0, '2','0','9',0,
- '2','1','0',0, '2','1','1',0, '2','1','2',0, '2','1','3',0, '2','1','4',0,
- '2','1','5',0, '2','1','6',0, '2','1','7',0, '2','1','8',0, '2','1','9',0,
- '2','2','0',0, '2','2','1',0, '2','2','2',0, '2','2','3',0, '2','2','4',0,
- '2','2','5',0, '2','2','6',0, '2','2','7',0, '2','2','8',0, '2','2','9',0,
- '2','3','0',0, '2','3','1',0, '2','3','2',0, '2','3','3',0, '2','3','4',0,
- '2','3','5',0, '2','3','6',0, '2','3','7',0, '2','3','8',0, '2','3','9',0,
- '2','4','0',0, '2','4','1',0, '2','4','2',0, '2','4','3',0, '2','4','4',0,
- '2','4','5',0, '2','4','6',0, '2','4','7',0, '2','4','8',0, '2','4','9',0,
- '2','5','0',0, '2','5','1',0, '2','5','2',0, '2','5','3',0, '2','5','4',0,
- '2','5','5',0, '2','5','6',0, '2','5','7',0, '2','5','8',0, '2','5','9',0,
- '2','6','0',0, '2','6','1',0, '2','6','2',0, '2','6','3',0, '2','6','4',0,
- '2','6','5',0, '2','6','6',0, '2','6','7',0, '2','6','8',0, '2','6','9',0,
- '2','7','0',0, '2','7','1',0, '2','7','2',0, '2','7','3',0, '2','7','4',0,
- '2','7','5',0, '2','7','6',0, '2','7','7',0, '2','7','8',0, '2','7','9',0,
- '2','8','0',0, '2','8','1',0, '2','8','2',0, '2','8','3',0, '2','8','4',0,
- '2','8','5',0, '2','8','6',0, '2','8','7',0, '2','8','8',0, '2','8','9',0,
- '2','9','0',0, '2','9','1',0, '2','9','2',0, '2','9','3',0, '2','9','4',0,
- '2','9','5',0, '2','9','6',0, '2','9','7',0, '2','9','8',0, '2','9','9',0,
- '3','0','0',0, '3','0','1',0, '3','0','2',0, '3','0','3',0, '3','0','4',0,
- '3','0','5',0, '3','0','6',0, '3','0','7',0, '3','0','8',0, '3','0','9',0,
- '3','1','0',0, '3','1','1',0, '3','1','2',0, '3','1','3',0, '3','1','4',0,
- '3','1','5',0, '3','1','6',0, '3','1','7',0, '3','1','8',0, '3','1','9',0,
- '3','2','0',0, '3','2','1',0, '3','2','2',0, '3','2','3',0, '3','2','4',0,
- '3','2','5',0, '3','2','6',0, '3','2','7',0, '3','2','8',0, '3','2','9',0,
- '3','3','0',0, '3','3','1',0, '3','3','2',0, '3','3','3',0, '3','3','4',0,
- '3','3','5',0, '3','3','6',0, '3','3','7',0, '3','3','8',0, '3','3','9',0,
- '3','4','0',0, '3','4','1',0, '3','4','2',0, '3','4','3',0, '3','4','4',0,
- '3','4','5',0, '3','4','6',0, '3','4','7',0, '3','4','8',0, '3','4','9',0,
- '3','5','0',0, '3','5','1',0, '3','5','2',0, '3','5','3',0, '3','5','4',0,
- '3','5','5',0, '3','5','6',0, '3','5','7',0, '3','5','8',0, '3','5','9',0,
- '3','6','0',0, '3','6','1',0, '3','6','2',0, '3','6','3',0, '3','6','4',0,
- '3','6','5',0, '3','6','6',0, '3','6','7',0, '3','6','8',0, '3','6','9',0,
- '3','7','0',0, '3','7','1',0, '3','7','2',0, '3','7','3',0, '3','7','4',0,
- '3','7','5',0, '3','7','6',0, '3','7','7',0, '3','7','8',0, '3','7','9',0,
- '3','8','0',0, '3','8','1',0, '3','8','2',0, '3','8','3',0, '3','8','4',0,
- '3','8','5',0, '3','8','6',0, '3','8','7',0, '3','8','8',0, '3','8','9',0,
- '3','9','0',0, '3','9','1',0, '3','9','2',0, '3','9','3',0, '3','9','4',0,
- '3','9','5',0, '3','9','6',0, '3','9','7',0, '3','9','8',0, '3','9','9',0,
- '4','0','0',0, '4','0','1',0, '4','0','2',0, '4','0','3',0, '4','0','4',0,
- '4','0','5',0, '4','0','6',0, '4','0','7',0, '4','0','8',0, '4','0','9',0,
- '4','1','0',0, '4','1','1',0, '4','1','2',0, '4','1','3',0, '4','1','4',0,
- '4','1','5',0, '4','1','6',0, '4','1','7',0, '4','1','8',0, '4','1','9',0,
- '4','2','0',0, '4','2','1',0, '4','2','2',0, '4','2','3',0, '4','2','4',0,
- '4','2','5',0, '4','2','6',0, '4','2','7',0, '4','2','8',0, '4','2','9',0,
- '4','3','0',0, '4','3','1',0, '4','3','2',0, '4','3','3',0, '4','3','4',0,
- '4','3','5',0, '4','3','6',0, '4','3','7',0, '4','3','8',0, '4','3','9',0,
- '4','4','0',0, '4','4','1',0, '4','4','2',0, '4','4','3',0, '4','4','4',0,
- '4','4','5',0, '4','4','6',0, '4','4','7',0, '4','4','8',0, '4','4','9',0,
- '4','5','0',0, '4','5','1',0, '4','5','2',0, '4','5','3',0, '4','5','4',0,
- '4','5','5',0, '4','5','6',0, '4','5','7',0, '4','5','8',0, '4','5','9',0,
- '4','6','0',0, '4','6','1',0, '4','6','2',0, '4','6','3',0, '4','6','4',0,
- '4','6','5',0, '4','6','6',0, '4','6','7',0, '4','6','8',0, '4','6','9',0,
- '4','7','0',0, '4','7','1',0, '4','7','2',0, '4','7','3',0, '4','7','4',0,
- '4','7','5',0, '4','7','6',0, '4','7','7',0, '4','7','8',0, '4','7','9',0,
- '4','8','0',0, '4','8','1',0, '4','8','2',0, '4','8','3',0, '4','8','4',0,
- '4','8','5',0, '4','8','6',0, '4','8','7',0, '4','8','8',0, '4','8','9',0,
- '4','9','0',0, '4','9','1',0, '4','9','2',0, '4','9','3',0, '4','9','4',0,
- '4','9','5',0, '4','9','6',0, '4','9','7',0, '4','9','8',0, '4','9','9',0,
- '5','0','0',0, '5','0','1',0, '5','0','2',0, '5','0','3',0, '5','0','4',0,
- '5','0','5',0, '5','0','6',0, '5','0','7',0, '5','0','8',0, '5','0','9',0,
- '5','1','0',0, '5','1','1',0, '5','1','2',0, '5','1','3',0, '5','1','4',0,
- '5','1','5',0, '5','1','6',0, '5','1','7',0, '5','1','8',0, '5','1','9',0,
- '5','2','0',0, '5','2','1',0, '5','2','2',0, '5','2','3',0, '5','2','4',0,
- '5','2','5',0, '5','2','6',0, '5','2','7',0, '5','2','8',0, '5','2','9',0,
- '5','3','0',0, '5','3','1',0, '5','3','2',0, '5','3','3',0, '5','3','4',0,
- '5','3','5',0, '5','3','6',0, '5','3','7',0, '5','3','8',0, '5','3','9',0,
- '5','4','0',0, '5','4','1',0, '5','4','2',0, '5','4','3',0, '5','4','4',0,
- '5','4','5',0, '5','4','6',0, '5','4','7',0, '5','4','8',0, '5','4','9',0,
- '5','5','0',0, '5','5','1',0, '5','5','2',0, '5','5','3',0, '5','5','4',0,
- '5','5','5',0, '5','5','6',0, '5','5','7',0, '5','5','8',0, '5','5','9',0,
- '5','6','0',0, '5','6','1',0, '5','6','2',0, '5','6','3',0, '5','6','4',0,
- '5','6','5',0, '5','6','6',0, '5','6','7',0, '5','6','8',0, '5','6','9',0,
- '5','7','0',0, '5','7','1',0, '5','7','2',0, '5','7','3',0, '5','7','4',0,
- '5','7','5',0, '5','7','6',0, '5','7','7',0, '5','7','8',0, '5','7','9',0,
- '5','8','0',0, '5','8','1',0, '5','8','2',0, '5','8','3',0, '5','8','4',0,
- '5','8','5',0, '5','8','6',0, '5','8','7',0, '5','8','8',0, '5','8','9',0,
- '5','9','0',0, '5','9','1',0, '5','9','2',0, '5','9','3',0, '5','9','4',0,
- '5','9','5',0, '5','9','6',0, '5','9','7',0, '5','9','8',0, '5','9','9',0,
- '6','0','0',0, '6','0','1',0, '6','0','2',0, '6','0','3',0, '6','0','4',0,
- '6','0','5',0, '6','0','6',0, '6','0','7',0, '6','0','8',0, '6','0','9',0,
- '6','1','0',0, '6','1','1',0, '6','1','2',0, '6','1','3',0, '6','1','4',0,
- '6','1','5',0, '6','1','6',0, '6','1','7',0, '6','1','8',0, '6','1','9',0,
- '6','2','0',0, '6','2','1',0, '6','2','2',0, '6','2','3',0, '6','2','4',0,
- '6','2','5',0, '6','2','6',0, '6','2','7',0, '6','2','8',0, '6','2','9',0,
- '6','3','0',0, '6','3','1',0, '6','3','2',0, '6','3','3',0, '6','3','4',0,
- '6','3','5',0, '6','3','6',0, '6','3','7',0, '6','3','8',0, '6','3','9',0,
- '6','4','0',0, '6','4','1',0, '6','4','2',0, '6','4','3',0, '6','4','4',0,
- '6','4','5',0, '6','4','6',0, '6','4','7',0, '6','4','8',0, '6','4','9',0,
- '6','5','0',0, '6','5','1',0, '6','5','2',0, '6','5','3',0, '6','5','4',0,
- '6','5','5',0, '6','5','6',0, '6','5','7',0, '6','5','8',0, '6','5','9',0,
- '6','6','0',0, '6','6','1',0, '6','6','2',0, '6','6','3',0, '6','6','4',0,
- '6','6','5',0, '6','6','6',0, '6','6','7',0, '6','6','8',0, '6','6','9',0,
- '6','7','0',0, '6','7','1',0, '6','7','2',0, '6','7','3',0, '6','7','4',0,
- '6','7','5',0, '6','7','6',0, '6','7','7',0, '6','7','8',0, '6','7','9',0,
- '6','8','0',0, '6','8','1',0, '6','8','2',0, '6','8','3',0, '6','8','4',0,
- '6','8','5',0, '6','8','6',0, '6','8','7',0, '6','8','8',0, '6','8','9',0,
- '6','9','0',0, '6','9','1',0, '6','9','2',0, '6','9','3',0, '6','9','4',0,
- '6','9','5',0, '6','9','6',0, '6','9','7',0, '6','9','8',0, '6','9','9',0,
- '7','0','0',0, '7','0','1',0, '7','0','2',0, '7','0','3',0, '7','0','4',0,
- '7','0','5',0, '7','0','6',0, '7','0','7',0, '7','0','8',0, '7','0','9',0,
- '7','1','0',0, '7','1','1',0, '7','1','2',0, '7','1','3',0, '7','1','4',0,
- '7','1','5',0, '7','1','6',0, '7','1','7',0, '7','1','8',0, '7','1','9',0,
- '7','2','0',0, '7','2','1',0, '7','2','2',0, '7','2','3',0, '7','2','4',0,
- '7','2','5',0, '7','2','6',0, '7','2','7',0, '7','2','8',0, '7','2','9',0,
- '7','3','0',0, '7','3','1',0, '7','3','2',0, '7','3','3',0, '7','3','4',0,
- '7','3','5',0, '7','3','6',0, '7','3','7',0, '7','3','8',0, '7','3','9',0,
- '7','4','0',0, '7','4','1',0, '7','4','2',0, '7','4','3',0, '7','4','4',0,
- '7','4','5',0, '7','4','6',0, '7','4','7',0, '7','4','8',0, '7','4','9',0,
- '7','5','0',0, '7','5','1',0, '7','5','2',0, '7','5','3',0, '7','5','4',0,
- '7','5','5',0, '7','5','6',0, '7','5','7',0, '7','5','8',0, '7','5','9',0,
- '7','6','0',0, '7','6','1',0, '7','6','2',0, '7','6','3',0, '7','6','4',0,
- '7','6','5',0, '7','6','6',0, '7','6','7',0, '7','6','8',0, '7','6','9',0,
- '7','7','0',0, '7','7','1',0, '7','7','2',0, '7','7','3',0, '7','7','4',0,
- '7','7','5',0, '7','7','6',0, '7','7','7',0, '7','7','8',0, '7','7','9',0,
- '7','8','0',0, '7','8','1',0, '7','8','2',0, '7','8','3',0, '7','8','4',0,
- '7','8','5',0, '7','8','6',0, '7','8','7',0, '7','8','8',0, '7','8','9',0,
- '7','9','0',0, '7','9','1',0, '7','9','2',0, '7','9','3',0, '7','9','4',0,
- '7','9','5',0, '7','9','6',0, '7','9','7',0, '7','9','8',0, '7','9','9',0,
- '8','0','0',0, '8','0','1',0, '8','0','2',0, '8','0','3',0, '8','0','4',0,
- '8','0','5',0, '8','0','6',0, '8','0','7',0, '8','0','8',0, '8','0','9',0,
- '8','1','0',0, '8','1','1',0, '8','1','2',0, '8','1','3',0, '8','1','4',0,
- '8','1','5',0, '8','1','6',0, '8','1','7',0, '8','1','8',0, '8','1','9',0,
- '8','2','0',0, '8','2','1',0, '8','2','2',0, '8','2','3',0, '8','2','4',0,
- '8','2','5',0, '8','2','6',0, '8','2','7',0, '8','2','8',0, '8','2','9',0,
- '8','3','0',0, '8','3','1',0, '8','3','2',0, '8','3','3',0, '8','3','4',0,
- '8','3','5',0, '8','3','6',0, '8','3','7',0, '8','3','8',0, '8','3','9',0,
- '8','4','0',0, '8','4','1',0, '8','4','2',0, '8','4','3',0, '8','4','4',0,
- '8','4','5',0, '8','4','6',0, '8','4','7',0, '8','4','8',0, '8','4','9',0,
- '8','5','0',0, '8','5','1',0, '8','5','2',0, '8','5','3',0, '8','5','4',0,
- '8','5','5',0, '8','5','6',0, '8','5','7',0, '8','5','8',0, '8','5','9',0,
- '8','6','0',0, '8','6','1',0, '8','6','2',0, '8','6','3',0, '8','6','4',0,
- '8','6','5',0, '8','6','6',0, '8','6','7',0, '8','6','8',0, '8','6','9',0,
- '8','7','0',0, '8','7','1',0, '8','7','2',0, '8','7','3',0, '8','7','4',0,
- '8','7','5',0, '8','7','6',0, '8','7','7',0, '8','7','8',0, '8','7','9',0,
- '8','8','0',0, '8','8','1',0, '8','8','2',0, '8','8','3',0, '8','8','4',0,
- '8','8','5',0, '8','8','6',0, '8','8','7',0, '8','8','8',0, '8','8','9',0,
- '8','9','0',0, '8','9','1',0, '8','9','2',0, '8','9','3',0, '8','9','4',0,
- '8','9','5',0, '8','9','6',0, '8','9','7',0, '8','9','8',0, '8','9','9',0,
- '9','0','0',0, '9','0','1',0, '9','0','2',0, '9','0','3',0, '9','0','4',0,
- '9','0','5',0, '9','0','6',0, '9','0','7',0, '9','0','8',0, '9','0','9',0,
- '9','1','0',0, '9','1','1',0, '9','1','2',0, '9','1','3',0, '9','1','4',0,
- '9','1','5',0, '9','1','6',0, '9','1','7',0, '9','1','8',0, '9','1','9',0,
- '9','2','0',0, '9','2','1',0, '9','2','2',0, '9','2','3',0, '9','2','4',0,
- '9','2','5',0, '9','2','6',0, '9','2','7',0, '9','2','8',0, '9','2','9',0,
- '9','3','0',0, '9','3','1',0, '9','3','2',0, '9','3','3',0, '9','3','4',0,
- '9','3','5',0, '9','3','6',0, '9','3','7',0, '9','3','8',0, '9','3','9',0,
- '9','4','0',0, '9','4','1',0, '9','4','2',0, '9','4','3',0, '9','4','4',0,
- '9','4','5',0, '9','4','6',0, '9','4','7',0, '9','4','8',0, '9','4','9',0,
- '9','5','0',0, '9','5','1',0, '9','5','2',0, '9','5','3',0, '9','5','4',0,
- '9','5','5',0, '9','5','6',0, '9','5','7',0, '9','5','8',0, '9','5','9',0,
- '9','6','0',0, '9','6','1',0, '9','6','2',0, '9','6','3',0, '9','6','4',0,
- '9','6','5',0, '9','6','6',0, '9','6','7',0, '9','6','8',0, '9','6','9',0,
- '9','7','0',0, '9','7','1',0, '9','7','2',0, '9','7','3',0, '9','7','4',0,
- '9','7','5',0, '9','7','6',0, '9','7','7',0, '9','7','8',0, '9','7','9',0,
- '9','8','0',0, '9','8','1',0, '9','8','2',0, '9','8','3',0, '9','8','4',0,
- '9','8','5',0, '9','8','6',0, '9','8','7',0, '9','8','8',0, '9','8','9',0,
- '9','9','0',0, '9','9','1',0, '9','9','2',0, '9','9','3',0, '9','9','4',0,
- '9','9','5',0, '9','9','6',0, '9','9','7',0, '9','9','8',0, '9','9','9',0
-};
-
-static char scratch_buffer[32];
-
-/*
- * sprintf_irc
- *
- * sprintf_irc is optimized for the formats: %c, %s, %lu, %d and %u.
- * Where %lu actually equals %l09u (for printing time_t timestamps).
- *
- * sprintf_irc is NOT optimized for any other format and resorts to using
- * the normal sprintf when it encounters a format it doesn't understand
- * (including padding, width, precision etc).
- *
- * The following benchmark was measured on a PPro200 with linux 2.0.30,
- * libc 5.4.28, compiled with gcc-2.7.2.1 with -O3.
- *
- * Format sprintf sprintf_irc Speed up factor
- *
- * "12345678901234567890" 3.385 us 0.859 us 3.94
- * "%s", buffer (20 chars) 3.780 us 0.547 us 6.91
- * "%c%c%c", c1, c2, c3 3.640 us 0.376 us 9.68
- * "%lu", (time_t)t 5.851 us 0.842 us 6.95
- *
- * Less important:
- * "%d", 31337 4.487 us 0.852 us 5.27
- * "%u.%u.%u.%u", 9.069 us 2.431 us 3.73
- *
- * Not used:
- * "%03d", 401 4.348 us
- * "%N" 0.216 us 20.13
- *
- * --Run
- */
-
-int
-vsprintf_irc(char *str, const char *format, va_list args)
-{
- char c;
- int bytes = 0;
-
- while ((c = *format++))
- {
- if (c == '%')
- {
- c = *format++; /* May never be '\0' ! */
-
- if (c == 's')
- {
- const char *p1 = va_arg(args, const char *);
- if ((*str = *p1))
- {
- ++bytes;
- while ((*++str = *++p1))
- ++bytes;
- }
-
- continue;
- }
-
- if (c == 'c')
- {
- *str++ = (char) va_arg(args, int);
- ++bytes;
-
- continue;
- }
-
- /*
- * Prints time_t value in interval
- * [ 100000000 , 4294967295 ]
- * Actually prints like "%09lu"
- */
- if (c == 'l' && *format == 'u')
- {
- unsigned long v1, v2;
- const char *ap;
-
- ++format;
- v1 = va_arg(args, unsigned long);
- if (v1 == 0)
- {
- *str++ = '0';
- ++bytes;
- continue;
- }
- if (v1 > 999999999L)
- {
- v2 = v1 / 1000000000;
- v1 -= v2 * 1000000000;
- *str++ = '0' + v2;
- ++bytes;
- }
-
- v2 = v1 / 1000000;
- v1 -= v2 * 1000000;
- ap = atoi_tab + (v2 << 2);
- *str++ = *ap++;
- *str++ = *ap++;
- *str++ = *ap;
- v2 = v1 / 1000;
- v1 -= v2 * 1000;
- ap = atoi_tab + (v2 << 2);
- *str++ = *ap++;
- *str++ = *ap++;
- *str++ = *ap;
- ap = atoi_tab + (v1 << 2);
- *str++ = *ap++;
- *str++ = *ap++;
- *str++ = *ap;
-
- bytes += 9;
-
- continue;
- }
- if (c == 't')
- {
- unsigned int v1;
-
- v1 = va_arg(args,int);
-
- *str++ = (v1/10) + '0';
- *str++ = v1%10 + '0';
-
- bytes += 2;
-
- continue;
- }
-
- if (c == 'd')
- {
- unsigned int v1, v2;
- const char *ap;
- char *s = &scratch_buffer[sizeof(scratch_buffer) - 2];
-
- v1 = va_arg(args, int);
- if ((int)v1 <= 0)
- {
- if (v1 == 0)
- {
- *str++ = '0';
- ++bytes;
- continue;
- }
- *str++ = '-';
- ++bytes;
- v1 = -v1;
- }
-
- do
- {
- v2 = v1 / 1000;
- ap = atoi_tab + 2 + ((v1 - 1000 * v2) << 2);
- *s-- = *ap--;
- *s-- = *ap--;
- *s-- = *ap;
- }
- while ((v1 = v2) > 0);
-
- while ('0' == *++s);
-
- *str = *s;
- ++bytes;
-
- while ((*++str = *++s))
- ++bytes;
-
- continue;
- }
-
- if (c == 'u')
- {
- unsigned int v1, v2;
- const char *ap;
- char *s = &scratch_buffer[sizeof(scratch_buffer) - 2];
-
- v1 = va_arg(args, unsigned int);
- if (v1 == 0)
- {
- *str++ = '0';
- ++bytes;
- continue;
- }
-
- do
- {
- v2 = v1 / 1000;
- ap = atoi_tab + 2 + ((v1 - 1000 * v2) << 2);
- *s-- = *ap--;
- *s-- = *ap--;
- *s-- = *ap;
- }
- while ((v1 = v2) > 0);
-
- while ('0' == *++s);
-
- *str = *s;
- ++bytes;
-
- while ((*++str = *++s))
- ++bytes;
-
- continue;
- }
-
- if (c != '%')
- {
- int ret;
-
- format -= 2;
- ret = vsprintf(str, format, args);
- str += ret;
- bytes += ret;
-
- break;
- }
- }
-
- *str++ = c;
- ++bytes;
- }
-
- *str = '\0';
-
- return(bytes);
-} /* vsprintf_irc() */
-
-int
-ircsprintf(char *str, const char *format, ...)
-{
- va_list args;
- int bytes;
-
- va_start(args, format);
-
- bytes = vsprintf_irc(str, format, args);
-
- va_end(args);
-
- return(bytes);
-} /* ircsprintf() */
-