NOTE: feature SPLIT is default enabled as that is just easier when working on this patch.
-diff -r 276734f7999e doc/api/log.txt
---- a/doc/api/log.txt Tue Feb 03 19:06:27 2009 +0100
-+++ b/doc/api/log.txt Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b doc/api/log.txt
+--- a/doc/api/log.txt Wed Feb 04 17:58:50 2009 +0100
++++ b/doc/api/log.txt Wed Feb 04 18:04:57 2009 +0100
@@ -41,7 +41,7 @@
<enum>
LS_OPERKILL, LS_SERVKILL, LS_USER, LS_OPER, LS_RESOLVER, LS_SOCKET,
LS_DEBUG, LS_OLDLOG,
LS_LAST_SYSTEM
-diff -r 276734f7999e include/client.h
---- a/include/client.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/client.h Tue Feb 03 19:17:10 2009 +0100
-@@ -146,6 +146,7 @@
- PRIV_SERVERINFO, /* oper can use /get, /stats, /hash, retrieve remote information */
+diff -r 1c62939e612b include/client.h
+--- a/include/client.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/client.h Wed Feb 04 18:04:57 2009 +0100
+@@ -151,6 +151,7 @@
+ PRIV_CHECK_CHANNEL, /* staff can /CHECK #channel */
PRIV_WELCOME, /* oper can WELCOME */
PRIV_LOCAL_WELCOME, /* oper can local WELCOME */
+ PRIV_SPLIT, /* oper can SPLIT */
PRIV_LAST_PRIV /**< number of privileges */
};
-diff -r 276734f7999e include/handlers.h
---- a/include/handlers.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/handlers.h Tue Feb 03 19:17:10 2009 +0100
-@@ -139,6 +139,7 @@
+diff -r 1c62939e612b include/handlers.h
+--- a/include/handlers.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/handlers.h Wed Feb 04 18:04:57 2009 +0100
+@@ -141,6 +141,7 @@
extern int m_registered(struct Client*, struct Client*, int, char*[]);
extern int m_sethost(struct Client*, struct Client*, int, char*[]);
extern int m_silence(struct Client*, struct Client*, int, char*[]);
+extern int m_split(struct Client*, struct Client*, int, char*[]);
+ extern int m_staff(struct Client*, struct Client*, int, char*[]);
extern int m_stats(struct Client*, struct Client*, int, char*[]);
extern int m_time(struct Client*, struct Client*, int, char*[]);
- extern int m_topic(struct Client*, struct Client*, int, char*[]);
-@@ -179,6 +180,7 @@
+@@ -182,6 +183,7 @@
extern int mo_rping(struct Client*, struct Client*, int, char*[]);
extern int mo_set(struct Client*, struct Client*, int, char*[]);
extern int mo_settime(struct Client*, struct Client*, int, char*[]);
+extern int mo_split(struct Client*, struct Client*, int, char*[]);
extern int mo_squit(struct Client*, struct Client*, int, char*[]);
+ extern int mo_staff(struct Client*, struct Client*, int, char*[]);
extern int mo_stats(struct Client*, struct Client*, int, char*[]);
- extern int mo_trace(struct Client*, struct Client*, int, char*[]);
-@@ -234,6 +236,7 @@
+@@ -238,6 +240,7 @@
extern int ms_sethost(struct Client*, struct Client*, int, char*[]);
extern int ms_settime(struct Client*, struct Client*, int, char*[]);
extern int ms_silence(struct Client*, struct Client*, int, char*[]);
+extern int ms_split(struct Client*, struct Client*, int, char*[]);
extern int ms_squit(struct Client*, struct Client*, int, char*[]);
+ extern int ms_staff(struct Client*, struct Client*, int, char*[]);
extern int ms_stats(struct Client*, struct Client*, int, char*[]);
- extern int ms_topic(struct Client*, struct Client*, int, char*[]);
-diff -r 276734f7999e include/ircd_features.h
---- a/include/ircd_features.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/ircd_features.h Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b include/ircd_features.h
+--- a/include/ircd_features.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/ircd_features.h Wed Feb 04 18:04:57 2009 +0100
@@ -112,6 +112,10 @@
FEAT_SETHOST_USER,
FEAT_SETHOST_AUTO,
FEAT_HIS_STATS_s,
FEAT_HIS_STATS_t,
FEAT_HIS_STATS_T,
-diff -r 276734f7999e include/ircd_log.h
---- a/include/ircd_log.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/ircd_log.h Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b include/ircd_log.h
+--- a/include/ircd_log.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/ircd_log.h Wed Feb 04 18:04:57 2009 +0100
@@ -55,6 +55,7 @@
LS_OPERMODE, /**< Uses of OPMODE, CLEARMODE< etc. */
LS_GLINE, /**< Adding, (de-)activating or removing GLINEs. */
LS_WHO, /**< Use of extended WHO privileges. */
LS_NETWORK, /**< New server connections. */
LS_OPERKILL, /**< Kills by IRC operators. */
-diff -r 276734f7999e include/msg.h
---- a/include/msg.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/msg.h Tue Feb 03 19:17:10 2009 +0100
-@@ -336,6 +336,10 @@
+diff -r 1c62939e612b include/msg.h
+--- a/include/msg.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/msg.h Wed Feb 04 18:04:57 2009 +0100
+@@ -340,6 +340,10 @@
#define TOK_JUPE "JU"
#define CMD_JUPE MSG_JUPE, TOK_JUPE
#define MSG_OPMODE "OPMODE" /* OPMO */
#define TOK_OPMODE "OM"
#define CMD_OPMODE MSG_OPMODE, TOK_OPMODE
-diff -r 276734f7999e include/numeric.h
---- a/include/numeric.h Tue Feb 03 19:06:27 2009 +0100
-+++ b/include/numeric.h Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b include/numeric.h
+--- a/include/numeric.h Wed Feb 04 17:58:50 2009 +0100
++++ b/include/numeric.h Wed Feb 04 18:04:57 2009 +0100
@@ -118,6 +118,7 @@
#define RPL_STATSALINE 226 /* Hybrid, Undernet */
#define RPL_STATSWELCOME 227 /* QuakeNet extension */
#define ERR_SILELISTFULL 511 /* Undernet extension */
/* ERR_NOTIFYFULL 512 aircd */
/* ERR_TOOMANYWATCH 512 Numeric List: Dalnet */
-diff -r 276734f7999e include/split.h
+diff -r 1c62939e612b include/split.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/include/split.h Tue Feb 03 19:17:10 2009 +0100
++++ b/include/split.h Wed Feb 04 18:04:57 2009 +0100
@@ -0,0 +1,109 @@
+#ifndef INCLUDED_split_h
+#define INCLUDED_split_h
+extern int split_memory_count(size_t *sp_size);
+
+#endif /* INCLUDED_split_h */
-diff -r 276734f7999e ircd/Makefile.in
---- a/ircd/Makefile.in Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/Makefile.in Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/Makefile.in
+--- a/ircd/Makefile.in Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/Makefile.in Wed Feb 04 18:04:57 2009 +0100
@@ -173,6 +173,7 @@
m_sethost.c \
m_settime.c \
m_silence.c \
+ m_split.c \
m_squit.c \
+ m_staff.c \
m_stats.c \
- m_time.c \
-@@ -213,6 +214,7 @@
+@@ -214,6 +215,7 @@
s_stats.c \
s_user.c \
send.c \
uping.c \
userload.c \
welcome.c \
-@@ -1054,6 +1056,15 @@
+@@ -1055,6 +1057,15 @@
../include/ircd_chattr.h ../include/list.h ../include/msg.h \
../include/numeric.h ../include/numnicks.h ../include/s_user.h \
../include/send.h ../include/struct.h
m_squit.o: m_squit.c ../config.h ../include/client.h \
../include/ircd_defs.h ../include/dbuf.h ../include/msgq.h \
../include/ircd_events.h ../config.h ../include/ircd_handler.h \
-@@ -1332,6 +1343,7 @@
+@@ -1344,6 +1355,7 @@
../include/msgq.h ../include/numeric.h ../include/numnicks.h \
../include/res.h ../include/s_bsd.h ../include/s_conf.h \
../include/s_user.h ../include/s_stats.h ../include/send.h \
../include/struct.h ../include/sys.h ../include/whowas.h
s_err.o: s_err.c ../config.h ../include/numeric.h ../include/ircd_log.h \
../include/s_debug.h ../config.h ../include/ircd_defs.h
-@@ -1417,6 +1429,16 @@
+@@ -1429,6 +1441,16 @@
../include/msg.h ../include/numnicks.h ../include/parse.h \
../include/s_bsd.h ../include/s_debug.h ../include/s_misc.h \
../include/s_user.h ../include/struct.h ../include/sys.h
uping.o: uping.c ../config.h ../include/uping.h ../include/ircd_defs.h \
../include/ircd_events.h ../config.h ../include/res.h \
../include/client.h ../include/dbuf.h ../include/msgq.h \
-diff -r 276734f7999e ircd/client.c
---- a/ircd/client.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/client.c Tue Feb 03 19:17:10 2009 +0100
-@@ -179,6 +179,7 @@
+diff -r 1c62939e612b ircd/client.c
+--- a/ircd/client.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/client.c Wed Feb 04 18:04:57 2009 +0100
+@@ -185,6 +185,7 @@
FlagSet(&privs_local, PRIV_DISPLAY);
FlagSet(&privs_local, PRIV_FORCE_LOCAL_OPMODE);
FlagSet(&privs_local, PRIV_LOCAL_WELCOME);
+ FlagSet(&privs_local, PRIV_SPLIT);
-
- privs_defaults_set = 1;
- }
-@@ -251,6 +252,7 @@
- P(ROUTE), P(ROUTEINFO), P(SERVERINFO), P(CHANNEL_PRIVACY),
- P(USER_PRIVACY),
+ FlagClr(&privs_local, PRIV_STAFF);
+ FlagClr(&privs_local, PRIV_CLAIM_NICK);
+ FlagClr(&privs_local, PRIV_GLINE_LOOKUP);
+@@ -292,6 +293,7 @@
+ P(STAFF), P(CLAIM_NICK), P(GLINE_LOOKUP), P(HIDE_CHANS),
+ P(CHECK_CHANNEL),
P(WELCOME), P(LOCAL_WELCOME),
+ P(SPLIT),
#undef P
{ 0, 0 }
};
-diff -r 276734f7999e ircd/ircd.c
---- a/ircd/ircd.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/ircd.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/ircd.c
+--- a/ircd/ircd.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/ircd.c Wed Feb 04 18:04:57 2009 +0100
@@ -55,6 +55,7 @@
#include "s_misc.h"
#include "s_stats.h"
event_loop();
return 0;
-diff -r 276734f7999e ircd/ircd_features.c
---- a/ircd/ircd_features.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/ircd_features.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/ircd_features.c
+--- a/ircd/ircd_features.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/ircd_features.c Wed Feb 04 18:04:57 2009 +0100
@@ -366,6 +366,10 @@
F_B(SETHOST_USER, 0, 0, 0),
F_B(SETHOST_AUTO, 0, 0, 0),
F_B(HIS_STATS_s, 0, 1, 0),
F_B(HIS_STATS_t, 0, 1, 0),
F_B(HIS_STATS_T, 0, 1, 0),
-diff -r 276734f7999e ircd/ircd_lexer.l
---- a/ircd/ircd_lexer.l Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/ircd_lexer.l Tue Feb 03 19:17:10 2009 +0100
-@@ -170,6 +170,7 @@
- { "channel_privacy", TPRIV_CHANNEL_PRIVACY },
+diff -r 1c62939e612b ircd/ircd_lexer.l
+--- a/ircd/ircd_lexer.l Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/ircd_lexer.l Wed Feb 04 18:04:57 2009 +0100
+@@ -175,6 +175,7 @@
+ { "check_channel", TPRIV_CHECK_CHANNEL },
{ "local_welcome", TPRIV_LOCAL_WELCOME },
{ "welcome", TPRIV_WELCOME },
+ { "split", TPRIV_SPLIT },
{ NULL, 0 }
};
static int ntokens;
-diff -r 276734f7999e ircd/ircd_log.c
---- a/ircd/ircd_log.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/ircd_log.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/ircd_log.c
+--- a/ircd/ircd_log.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/ircd_log.c Wed Feb 04 18:04:57 2009 +0100
@@ -154,6 +154,7 @@
S(OPERMODE, -1, SNO_HACK4),
S(GLINE, -1, SNO_GLINE),
S(WHO, -1, 0),
S(NETWORK, -1, SNO_NETWORK),
S(OPERKILL, -1, 0),
-diff -r 276734f7999e ircd/ircd_parser.y
---- a/ircd/ircd_parser.y Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/ircd_parser.y Tue Feb 03 19:17:10 2009 +0100
-@@ -190,7 +190,8 @@
- %token TPRIV_CHANSERV TPRIV_XTRA_OPER TPRIV_NOIDLE TPRIV_FREEFORM TPRIV_PARANOID
- %token TPRIV_CHECK TPRIV_WALL TPRIV_CLOSE TPRIV_ROUTE TPRIV_ROUTEINFO TPRIV_SERVERINFO
- %token TPRIV_CHANNEL_PRIVACY TPRIV_USER_PRIVACY TPRIV_LIST_CHAN
--%token TPRIV_LOCAL_WELCOME TPRIV_WELCOME
-+%token TPRIV_LOCAL_WELCOME TPRIV_WELCOME
+diff -r 1c62939e612b ircd/ircd_parser.y
+--- a/ircd/ircd_parser.y Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/ircd_parser.y Wed Feb 04 18:04:57 2009 +0100
+@@ -193,6 +193,7 @@
+ %token TPRIV_STAFF TPRIV_CLAIM_NICK TPRIV_GLINE_LOOKUP TPRIV_HIDE_CHANS
+ %token TPRIV_CHECK_CHANNEL
+ %token TPRIV_LOCAL_WELCOME TPRIV_WELCOME
+%token TPRIV_SPLIT
/* and some types... */
%type <num> sizespec
%type <num> timespec timefactor factoredtimes factoredtime
-@@ -707,6 +708,7 @@
- TPRIV_USER_PRIVACY { $$ = PRIV_USER_PRIVACY ; } |
+@@ -716,6 +717,7 @@
+ TPRIV_HIDE_CHANS { $$ = PRIV_HIDE_CHANS; } |
TPRIV_LOCAL_WELCOME { $$ = PRIV_LOCAL_WELCOME; } |
TPRIV_WELCOME { $$ = PRIV_WELCOME; } |
+ TPRIV_SPLIT { $$ = PRIV_SPLIT; } |
TPRIV_PARANOID { $$ = PRIV_PARANOID; } ;
yesorno: YES { $$ = 1; } | NO { $$ = 0; };
-diff -r 276734f7999e ircd/m_endburst.c
---- a/ircd/m_endburst.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/m_endburst.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/m_endburst.c
+--- a/ircd/m_endburst.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/m_endburst.c Wed Feb 04 18:04:57 2009 +0100
@@ -85,6 +85,7 @@
#include "client.h"
#include "hash.h"
if (MyConnect(sptr))
sendcmdto_one(&me, CMD_END_OF_BURST_ACK, sptr, "");
-diff -r 276734f7999e ircd/m_reburst.c
---- a/ircd/m_reburst.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/m_reburst.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/m_reburst.c
+--- a/ircd/m_reburst.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/m_reburst.c Wed Feb 04 18:04:57 2009 +0100
@@ -102,6 +102,7 @@
#include "ircd_snprintf.h"
#include "gline.h"
default:
break;
}
-diff -r 276734f7999e ircd/m_server.c
---- a/ircd/m_server.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/m_server.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/m_server.c
+--- a/ircd/m_server.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/m_server.c Wed Feb 04 18:04:57 2009 +0100
@@ -47,6 +47,7 @@
#include "s_misc.h"
#include "s_serv.h"
/*
* Old sendto_serv_but_one() call removed because we now need to send
* different names to different servers (domain name matching).
-diff -r 276734f7999e ircd/m_split.c
+diff -r 1c62939e612b ircd/m_split.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/ircd/m_split.c Tue Feb 03 19:17:10 2009 +0100
++++ b/ircd/m_split.c Wed Feb 04 18:04:57 2009 +0100
@@ -0,0 +1,400 @@
+/*
+ * IRC - Internet Relay Chat, ircd/m_split.c
+ /* looking for a match */
+ return split_list(sptr, parv[1]);
+}
-diff -r 276734f7999e ircd/parse.c
---- a/ircd/parse.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/parse.c Tue Feb 03 19:17:10 2009 +0100
-@@ -506,6 +506,13 @@
+diff -r 1c62939e612b ircd/parse.c
+--- a/ircd/parse.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/parse.c Wed Feb 04 18:04:57 2009 +0100
+@@ -513,6 +513,13 @@
{ m_unregistered, m_not_oper, ms_jupe, mo_jupe, m_ignore, mh_jupe }
},
{
MSG_OPMODE,
TOK_OPMODE,
0, MAXPARA, MFLG_SLOW, 0, NULL,
-diff -r 276734f7999e ircd/s_conf.c
---- a/ircd/s_conf.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_conf.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_conf.c
+--- a/ircd/s_conf.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_conf.c Wed Feb 04 18:04:57 2009 +0100
@@ -53,6 +53,7 @@
#include "s_debug.h"
#include "s_misc.h"
return ret;
}
-diff -r 276734f7999e ircd/s_debug.c
---- a/ircd/s_debug.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_debug.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_debug.c
+--- a/ircd/s_debug.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_debug.c Wed Feb 04 18:04:57 2009 +0100
@@ -48,6 +48,7 @@
#include "s_user.h"
#include "s_stats.h"
send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG,
":Hash: client %d(%zu), chan is the same", HASHSIZE,
-diff -r 276734f7999e ircd/s_err.c
---- a/ircd/s_err.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_err.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_err.c
+--- a/ircd/s_err.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_err.c Wed Feb 04 18:04:57 2009 +0100
@@ -490,7 +490,7 @@
/* 228 */
{ RPL_STATSQLINE, "Q %s :%s", "228" },
/* 511 */
{ ERR_SILELISTFULL, "%s :Your silence list is full", "511" },
/* 512 */
-diff -r 276734f7999e ircd/s_misc.c
---- a/ircd/s_misc.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_misc.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_misc.c
+--- a/ircd/s_misc.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_misc.c Wed Feb 04 18:04:57 2009 +0100
@@ -53,6 +53,7 @@
#include "s_stats.h"
#include "s_user.h"
}
/*
-diff -r 276734f7999e ircd/s_serv.c
---- a/ircd/s_serv.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_serv.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_serv.c
+--- a/ircd/s_serv.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_serv.c Wed Feb 04 18:04:57 2009 +0100
@@ -54,6 +54,7 @@
#include "s_misc.h"
#include "s_user.h"
welcome_burst(cptr);
/*
-diff -r 276734f7999e ircd/s_stats.c
---- a/ircd/s_stats.c Tue Feb 03 19:06:27 2009 +0100
-+++ b/ircd/s_stats.c Tue Feb 03 19:17:10 2009 +0100
+diff -r 1c62939e612b ircd/s_stats.c
+--- a/ircd/s_stats.c Wed Feb 04 17:58:50 2009 +0100
++++ b/ircd/s_stats.c Wed Feb 04 18:04:57 2009 +0100
@@ -52,6 +52,7 @@
#include "s_stats.h"
#include "s_user.h"
stats_sline, 0,
"Spoofed hosts information." },
{ 'T', "motds", (STAT_FLAG_OPERFEAT | STAT_FLAG_CASESENS), FEAT_HIS_STATS_T,
-diff -r 276734f7999e ircd/split.c
+diff -r 1c62939e612b ircd/split.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/ircd/split.c Tue Feb 03 19:17:10 2009 +0100
++++ b/ircd/split.c Wed Feb 04 18:04:57 2009 +0100
@@ -0,0 +1,873 @@
+/*
+ * IRC - Internet Relay Chat, ircd/split.c