From 790dc8a4bf326a7598fc41aa8c018e867edee33a Mon Sep 17 00:00:00 2001 From: "viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 3 Sep 2008 20:11:12 +0000 Subject: BUILD : 1.7.21 (1426) BUGS : 876 NOTES : We now support CIDR in channel ban/invite/except lists. Introduces new CIDR capable generic lists system. git-svn-id: svn://svn.anope.org/anope/trunk@1426 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1141 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/bahamut.c | 3 ++- src/protocol/charybdis.c | 9 +++++---- src/protocol/dreamforge.c | 3 ++- src/protocol/hybrid.c | 7 ++++--- src/protocol/inspircd10.c | 1 + src/protocol/inspircd11.c | 1 + src/protocol/plexus2.c | 3 ++- src/protocol/plexus3.c | 3 ++- src/protocol/ptlink.c | 3 ++- src/protocol/rageircd.c | 3 ++- src/protocol/ratbox.c | 3 ++- src/protocol/shadowircd.c | 3 ++- src/protocol/solidircd.c | 3 ++- src/protocol/ultimate2.c | 1 + src/protocol/ultimate3.c | 3 ++- src/protocol/unreal31.c | 1 + src/protocol/unreal32.c | 3 ++- src/protocol/viagra.c | 1 + 18 files changed, 36 insertions(+), 18 deletions(-) (limited to 'src/protocol') diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 96ff089bb..e00fa2a45 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -107,6 +107,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -634,7 +635,7 @@ void moduleAddIRCDMsgs(void) { /* first update the cs protect info about this ircd */ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-"); - + /* now add the commands */ m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m); m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m); diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 002cd23b3..23c758324 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -104,6 +104,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 1, /* CIDR channelbans */ } , {NULL} @@ -237,7 +238,7 @@ unsigned long umodes[128] = { 0, /* y */ UMODE_z, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; @@ -741,15 +742,15 @@ int anope_event_tburst(char *source, int ac, char **av) c->topic_time = topic_time; record_topic(av[0]); - + if (ac > 1 && *av[3]) send_event(EVENT_TOPIC_UPDATED, 2, av[0], av[3]); else send_event(EVENT_TOPIC_UPDATED, 2, av[0], ""); - + if (setter) free(setter); - + return MOD_CONT; } diff --git a/src/protocol/dreamforge.c b/src/protocol/dreamforge.c index 1f6be1a9d..3809f3bd7 100644 --- a/src/protocol/dreamforge.c +++ b/src/protocol/dreamforge.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -254,7 +255,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; char myCsmodes[128] = { diff --git a/src/protocol/hybrid.c b/src/protocol/hybrid.c index 5ee3cc890..454913517 100644 --- a/src/protocol/hybrid.c +++ b/src/protocol/hybrid.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -256,7 +257,7 @@ unsigned long umodes[128] = { UMODE_y, /* y */ UMODE_z, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; @@ -568,11 +569,11 @@ int anope_event_topic(char *source, int ac, char **av) c->topic_time = topic_time; record_topic(av[0]); - + if (ac > 1 && *av[1]) send_event(EVENT_TOPIC_UPDATED, 2, av[0], av[1]); else - send_event(EVENT_TOPIC_UPDATED, 2, av[0], ""); + send_event(EVENT_TOPIC_UPDATED, 2, av[0], ""); } return MOD_CONT; } diff --git a/src/protocol/inspircd10.c b/src/protocol/inspircd10.c index f494a2d29..30ced466d 100644 --- a/src/protocol/inspircd10.c +++ b/src/protocol/inspircd10.c @@ -124,6 +124,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 7f3cbb9e3..b6b168ec6 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -124,6 +124,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 1, /* CIDR channelbans */ } , {NULL} diff --git a/src/protocol/plexus2.c b/src/protocol/plexus2.c index cc6dc08f1..0a91194f4 100644 --- a/src/protocol/plexus2.c +++ b/src/protocol/plexus2.c @@ -103,6 +103,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -322,7 +323,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; diff --git a/src/protocol/plexus3.c b/src/protocol/plexus3.c index 70118de1f..0fe8a74c4 100644 --- a/src/protocol/plexus3.c +++ b/src/protocol/plexus3.c @@ -103,6 +103,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -264,7 +265,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; diff --git a/src/protocol/ptlink.c b/src/protocol/ptlink.c index d41eb62ca..9e6eb08b1 100644 --- a/src/protocol/ptlink.c +++ b/src/protocol/ptlink.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -192,7 +193,7 @@ unsigned long umodes[128] = { UMODE_y, /* y */ UMODE_z, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; char myCsmodes[128] = { diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c index 1c7b3d4ae..94fc7824e 100644 --- a/src/protocol/rageircd.c +++ b/src/protocol/rageircd.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -192,7 +193,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; char myCsmodes[128] = { diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 6bc0f1b5c..d8c33b4a3 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -236,7 +237,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; diff --git a/src/protocol/shadowircd.c b/src/protocol/shadowircd.c index 78eff5bc9..0061a538b 100644 --- a/src/protocol/shadowircd.c +++ b/src/protocol/shadowircd.c @@ -106,6 +106,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -238,7 +239,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; diff --git a/src/protocol/solidircd.c b/src/protocol/solidircd.c index 4cafcddd1..b0f948794 100644 --- a/src/protocol/solidircd.c +++ b/src/protocol/solidircd.c @@ -107,6 +107,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -269,7 +270,7 @@ unsigned long umodes[128] = { UMODE_y, /* y */ UMODE_z, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; char myCsmodes[128] = { diff --git a/src/protocol/ultimate2.c b/src/protocol/ultimate2.c index 5353de42f..2e6125861 100644 --- a/src/protocol/ultimate2.c +++ b/src/protocol/ultimate2.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c index 88701ab3d..16186481a 100644 --- a/src/protocol/ultimate3.c +++ b/src/protocol/ultimate3.c @@ -105,6 +105,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -285,7 +286,7 @@ unsigned long umodes[128] = { 0, /* y */ 0, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; diff --git a/src/protocol/unreal31.c b/src/protocol/unreal31.c index 0a65b4726..08781ca0f 100644 --- a/src/protocol/unreal31.c +++ b/src/protocol/unreal31.c @@ -107,6 +107,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 0, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 83a41f1c9..d4c526d14 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -107,6 +107,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} @@ -197,7 +198,7 @@ unsigned long umodes[128] = { 0, /* y */ UMODE_z, /* z */ 0, 0, 0, /* { | } */ - 0, 0 /* ~ ‚ */ + 0, 0 /* ~ � */ }; char myCsmodes[128] = { diff --git a/src/protocol/viagra.c b/src/protocol/viagra.c index c62c6776b..8638204b7 100644 --- a/src/protocol/viagra.c +++ b/src/protocol/viagra.c @@ -106,6 +106,7 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ + 0, /* CIDR channelbans */ } , {NULL} -- cgit