mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
BUILD : 1.7.5 (368) BUGS : N/A NOTES : IRCD protocol clean up, and support for Numerics on Unreal32/RageIRCD
git-svn-id: svn://svn.anope.org/anope/trunk@368 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@239 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
8d89775ceb
commit
59e7ad6024
@@ -36,6 +36,11 @@ Anope Version S V N
|
||||
# on. The default value is 3
|
||||
#NewsCount
|
||||
|
||||
# Numeric [OPTIONAL]
|
||||
# Many ircd identify themselves with a Numeric when using this option
|
||||
# consult your ircds documentation before using this
|
||||
#Numeric 0
|
||||
|
||||
|
||||
** MODIFIED CONFIGURATION DIRECTIVES **
|
||||
** DELETED CONFIGURATION DIRECTIVES **
|
||||
|
||||
@@ -253,6 +253,11 @@ NetworkDomain "localnet.com"
|
||||
|
||||
NetworkName "LocalNet"
|
||||
|
||||
# Numeric [OPTIONAL]
|
||||
# Many ircd identify themselves with a Numeric ID when using this option
|
||||
# consult your ircds documentation before using this
|
||||
#Numeric 0
|
||||
|
||||
###########################################################################
|
||||
#
|
||||
# Basic functionality
|
||||
|
||||
@@ -296,6 +296,7 @@ E int UseSVS2MODE;
|
||||
E int RestrictOperNicks;
|
||||
E int UseTokens;
|
||||
E int NewsCount;
|
||||
E int Numeric;
|
||||
|
||||
E char **HostSetters;
|
||||
E int HostNumber;
|
||||
|
||||
@@ -250,6 +250,8 @@ struct ircdvars_ {
|
||||
int tokencaseless; /* TOKEN are not case senstive - most its Unreal that is case senstive */
|
||||
int sjb64; /* Base 64 encode TIMESTAMP */
|
||||
int invitemode; /* +I */
|
||||
int sjoinbanchar; /* use single quotes to define it */
|
||||
int sjoinexchar; /* use single quotes to define it */
|
||||
};
|
||||
|
||||
struct ircdcapab_ {
|
||||
|
||||
@@ -97,7 +97,4 @@
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
#define SJOINBANNCHAR '&'
|
||||
#define SJOINEXCEPTIONCHAR '\"'
|
||||
|
||||
#endif
|
||||
|
||||
+25
-22
@@ -93,7 +93,10 @@ IRCDVar ircd[] = {
|
||||
NULL, /* CAPAB Chan Modes */
|
||||
0, /* We support TOKENS */
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
1, /* validate - to the #:# standard */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -587,10 +590,10 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("JOIN", anope_event_join); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KICK", anope_event_kick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KILL", anope_event_kill); addCoreMessage(IRCD,m);
|
||||
@@ -606,39 +609,39 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_gnotice); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CS", anope_event_cs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("HS", anope_event_hs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MS", anope_event_ms); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NS", anope_event_ns); addCoreMessage(IRCD,m);
|
||||
m = createMessage("OS", anope_event_os); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m);
|
||||
m = createMessage("LUSERSLOCK",anope_event_luserslock); addCoreMessage(IRCD,m);
|
||||
m = createMessage("BURST", anope_event_burst); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -456,7 +456,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
|
||||
if (cmd) {
|
||||
if (!stricmp(cmd, "!deowner") && ircd->owner) {
|
||||
if (is_founder(u, ci))
|
||||
bot_raw_mode(u, ci, "-q", u->nick);
|
||||
bot_raw_mode(u, ci, ircd->ownerunset, u->nick);
|
||||
} else if (!stricmp(cmd, "!kb")) {
|
||||
char *target = strtok(NULL, " ");
|
||||
char *reason = strtok(NULL, "");
|
||||
@@ -489,7 +489,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
|
||||
}
|
||||
} else if (!stricmp(cmd, "!owner") && ircd->owner) {
|
||||
if (is_founder(u, ci))
|
||||
bot_raw_mode(u, ci, "+q", u->nick);
|
||||
bot_raw_mode(u, ci, ircd->ownerset, u->nick);
|
||||
} else if (!stricmp(cmd, "!seen")) {
|
||||
char *target = strtok(NULL, " ");
|
||||
char buf[BUFSIZE];
|
||||
|
||||
+18
-16
@@ -694,24 +694,26 @@ void do_sjoin(const char *source, int ac, char **av)
|
||||
|
||||
end2 = cubuf + 1;
|
||||
|
||||
#ifdef SJOINBANNCHAR
|
||||
if (*s == SJOINBANNCHAR) {
|
||||
add_ban(c, myStrGetToken(s, SJOINBANNCHAR, 1));
|
||||
if (!end)
|
||||
break;
|
||||
s = end + 1;
|
||||
continue;
|
||||
|
||||
if (ircd->sjoinbanchar) {
|
||||
if (*s == ircd->sjoinbanchar) {
|
||||
add_ban(c, myStrGetToken(s, ircd->sjoinbanchar, 1));
|
||||
if (!end)
|
||||
break;
|
||||
s = end + 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef SJOINEXCEPTIONCHAR
|
||||
if (*s == SJOINEXCEPTIONCHAR) {
|
||||
add_exception(c, myStrGetToken(s, SJOINEXCEPTIONCHAR, 1));
|
||||
if (!end)
|
||||
break;
|
||||
s = end + 1;
|
||||
continue;
|
||||
if (ircd->sjoinexchar) {
|
||||
if (*s == ircd->sjoinexchar) {
|
||||
add_exception(c,
|
||||
myStrGetToken(s, ircd->sjoinexchar, 1));
|
||||
if (!end)
|
||||
break;
|
||||
s = end + 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
while (csmodes[(int) *s] != 0)
|
||||
*end2++ = csmodes[(int) *s++];
|
||||
|
||||
@@ -324,6 +324,8 @@ long unsigned int UserKey1;
|
||||
long unsigned int UserKey2;
|
||||
long unsigned int UserKey3;
|
||||
|
||||
int Numeric;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/* Deprecated directive (dep_) and value checking (chk_) functions: */
|
||||
@@ -514,6 +516,7 @@ Directive directives[] = {
|
||||
{"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}},
|
||||
{"NewsDB", {{PARAM_STRING, PARAM_RELOAD, &NewsDBName}}},
|
||||
{"NickservDB", {{PARAM_STRING, PARAM_RELOAD, &NickDBName}}},
|
||||
{"Numeric", {{PARAM_POSINT, PARAM_RELOAD, &Numeric}}},
|
||||
{"PreNickServDB", {{PARAM_STRING, PARAM_RELOAD, &PreNickDBName}}},
|
||||
{"NSEmailReg", {{PARAM_SET, PARAM_RELOAD, &NSEmailReg}}},
|
||||
{"NickRegDelay", {{PARAM_INT, PARAM_RELOAD, &NickRegDelay}}},
|
||||
|
||||
+23
-22
@@ -93,6 +93,8 @@ IRCDVar ircd[] = {
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -444,45 +446,44 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("JOIN", anope_event_join); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KICK", anope_event_kick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KILL", anope_event_kill); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MODE", anope_event_mode); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MOTD", anope_event_motd); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NICK", anope_event_nick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PART", anope_event_part); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PASS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PASS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PING", anope_event_ping); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PRIVMSG", anope_event_privmsg); addCoreMessage(IRCD,m);
|
||||
m = createMessage("QUIT", anope_event_quit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PROTOCTL", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+17
-16
@@ -93,6 +93,8 @@ IRCDVar ircd[] = {
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -590,7 +592,7 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_invite); addCoreMessage(IRCD,m);
|
||||
@@ -609,22 +611,21 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
|
||||
+24
-23
@@ -93,6 +93,8 @@ IRCDVar ircd[] = {
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -501,7 +503,7 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_invite); addCoreMessage(IRCD,m);
|
||||
@@ -520,30 +522,29 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
|
||||
m = createMessage("NEWMASK", anope_event_newmask); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSINFO", anope_event_svsinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NEWMASK", anope_event_newmask); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSINFO", anope_event_svsinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m);
|
||||
}
|
||||
|
||||
|
||||
+24
-20
@@ -93,6 +93,8 @@ IRCDVar ircd[] = {
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
1, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
@@ -459,11 +461,11 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("482", anope_event_482); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("JOIN", anope_event_join); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KICK", anope_event_kick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KILL", anope_event_kill); addCoreMessage(IRCD,m);
|
||||
@@ -479,34 +481,34 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_globops); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CS", anope_event_cs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("HS", anope_event_hs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MS", anope_event_ms); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NS", anope_event_ns); addCoreMessage(IRCD,m);
|
||||
m = createMessage("OS", anope_event_os); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SNICK", anope_event_snick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("VHOST", anope_event_vhost); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MYID", anope_event_myid); addCoreMessage(IRCD,m);
|
||||
@@ -516,7 +518,6 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
|
||||
}
|
||||
|
||||
/* *INDENT-ON* */
|
||||
@@ -697,6 +698,9 @@ void anope_cmd_connect(int servernum)
|
||||
else if (servernum == 3)
|
||||
anope_cmd_pass(RemotePassword3);
|
||||
anope_cmd_capab();
|
||||
if (Numeric) {
|
||||
send_cmd(NULL, "MYID !%d", Numeric);
|
||||
}
|
||||
anope_cmd_server(ServerName, 1, ServerDesc);
|
||||
anope_cmd_svinfo();
|
||||
anope_cmd_burst();
|
||||
|
||||
+31
-29
@@ -93,6 +93,8 @@ IRCDVar ircd[] = {
|
||||
0, /* TOKENS are CASE inSensitive */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -566,15 +568,15 @@ int anope_event_436(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("6", anope_event_away); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("INVITE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("*", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("*", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("JOIN", anope_event_join); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
@@ -636,65 +638,65 @@ void moduleAddIRCDMsgs(void) {
|
||||
if (UseTokens) {
|
||||
m = createMessage(")", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("%", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("%", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("=", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("=", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("#", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("V", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("V", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("]", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("]", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("GNOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("Z", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("Z", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("[", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("[", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("Y", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("Y", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("U", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("U", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("h", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("h", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("n", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("n", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("e", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("e", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("f", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("f", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("c", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("d", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("d", anope_event_null); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("PROTOCTL", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
|
||||
+27
-24
@@ -91,7 +91,10 @@ IRCDVar ircd[] = {
|
||||
NULL, /* CAPAB Chan Modes */
|
||||
0, /* We support TOKENS */
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
1, /* validate - to the #:# standard */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
@@ -562,7 +565,7 @@ int anope_event_client(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_invite); addCoreMessage(IRCD,m);
|
||||
@@ -581,43 +584,43 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_gnotice); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CS", anope_event_cs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("HS", anope_event_hs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MS", anope_event_ms); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NS", anope_event_ns); addCoreMessage(IRCD,m);
|
||||
m = createMessage("OS", anope_event_os); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SETHOST", anope_event_sethost); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETINFO", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GCONNECT", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETINFO", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GCONNECT", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETGLOBAL", anope_event_netglobal); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHATOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHATOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETCTRL", anope_event_netctrl); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CLIENT", anope_event_client); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m);
|
||||
m = createMessage("BURST", anope_event_burst); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
|
||||
+26
-33
@@ -93,7 +93,10 @@ IRCDVar ircd[] = {
|
||||
NULL, /* CAPAB Chan Modes */
|
||||
0, /* We support Unreal TOKENS */
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
1, /* validate - to the #:# standard */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
@@ -413,61 +416,51 @@ void anope_set_umode(User * user, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("JOIN", anope_event_join); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KICK", anope_event_kick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("KILL", anope_event_kill); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MODE", anope_event_mode); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MOTD", anope_event_motd); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NICK", anope_event_nick); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PART", anope_event_part); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PASS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PASS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PING", anope_event_ping); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PRIVMSG", anope_event_privmsg); addCoreMessage(IRCD,m);
|
||||
m = createMessage("QUIT", anope_event_quit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("STATS", m_stats); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("PROTOCTL", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGHOST", anope_event_chghost); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGIDENT", anope_event_chgident); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGNAME", anope_event_chgname); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETINFO", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NETINFO", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SETHOST", anope_event_sethost); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SETIDENT", anope_event_setident); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SETNAME", anope_event_setname); addCoreMessage(IRCD,m);
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("O", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("@", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
if (UseTokens) {
|
||||
m = createMessage("AJ", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
}
|
||||
m = createMessage("REHASH", anope_event_rehash); addCoreMessage(IRCD,m);
|
||||
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CREDITS", anope_event_credits); addCoreMessage(IRCD,m);
|
||||
}
|
||||
|
||||
/* *INDENT-ON* */
|
||||
|
||||
+23
-6
@@ -42,7 +42,7 @@ IRCDVar ircd[] = {
|
||||
"+ioS", /* Global alias mode */
|
||||
"+qS", /* Used by BotServ Bots */
|
||||
5, /* Chan Max Symbols */
|
||||
"-ckiflmnpstuzACGHKLNOQRSV", /* Modes to Remove */
|
||||
"-ckiflmnpstuzACGHKLMNOQRSTV", /* Modes to Remove */
|
||||
"+ao", /* Channel Umode used by Botserv bots */
|
||||
1, /* SVSNICK */
|
||||
1, /* Vhost */
|
||||
@@ -95,6 +95,8 @@ IRCDVar ircd[] = {
|
||||
0, /* TOKENS are CASE Sensitive */
|
||||
1, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
'&', /* SJOIN ban char */
|
||||
'\"', /* SJOIN except char */
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
@@ -1016,11 +1018,21 @@ void anope_cmd_quit(char *source, const char *fmt, ...)
|
||||
void anope_cmd_capab()
|
||||
{
|
||||
if (UseTokens) {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP TOKEN SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64");
|
||||
if (Numeric) {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP TOKEN SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64 VL");
|
||||
} else {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP TOKEN SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64");
|
||||
}
|
||||
} else {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64");
|
||||
if (Numeric) {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64 VL");
|
||||
} else {
|
||||
send_cmd(NULL,
|
||||
"PROTOCTL NICKv2 VHP UMODE2 NICKIP SJOIN SJOIN2 SJ3 NOQUIT TKLEXT SJB64");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1034,7 +1046,12 @@ void anope_cmd_pass(char *pass)
|
||||
/* Unreal 3.2 actually sends some info about itself in the descript area */
|
||||
void anope_cmd_server(char *servname, int hop, char *descript)
|
||||
{
|
||||
send_cmd(NULL, "SERVER %s %d :%s", servname, hop, descript);
|
||||
if (Numeric) {
|
||||
send_cmd(NULL, "SERVER %s %d :U0-*-%d %s", servname, hop, Numeric,
|
||||
descript);
|
||||
} else {
|
||||
send_cmd(NULL, "SERVER %s %d :%s", servname, hop, descript);
|
||||
}
|
||||
}
|
||||
|
||||
/* PONG */
|
||||
|
||||
+22
-19
@@ -91,7 +91,10 @@ IRCDVar ircd[] = {
|
||||
NULL, /* CAPAB Chan Modes */
|
||||
0, /* We support TOKENS */
|
||||
1, /* TOKENS are CASE inSensitive */
|
||||
1, /* validate - to the #:# standard */
|
||||
0, /* TIME STAMPS are BASE64 */
|
||||
0, /* +I support */
|
||||
0, /* SJOIN ban char */
|
||||
0, /* SJOIN except char */
|
||||
}
|
||||
,
|
||||
{NULL}
|
||||
@@ -630,7 +633,7 @@ int anope_event_error(char *source, int ac, char **av)
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
|
||||
m = createMessage("401", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AWAY", anope_event_away); addCoreMessage(IRCD,m);
|
||||
m = createMessage("INVITE", anope_event_invite); addCoreMessage(IRCD,m);
|
||||
@@ -649,34 +652,34 @@ void moduleAddIRCDMsgs(void) {
|
||||
m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m);
|
||||
m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("AKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GNOTICE", anope_event_gnotice); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("GOPER", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSQLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CAPAB", anope_event_capab); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CS", anope_event_cs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("HS", anope_event_hs); addCoreMessage(IRCD,m);
|
||||
m = createMessage("MS", anope_event_ms); addCoreMessage(IRCD,m);
|
||||
m = createMessage("NS", anope_event_ns); addCoreMessage(IRCD,m);
|
||||
m = createMessage("OS", anope_event_os); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("RS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SJOIN", anope_event_sjoin); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SS", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SVINFO", anope_event_svinfo); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", NULL); addCoreMessage(IRCD,m);
|
||||
m = createMessage("SZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSGLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("UNSZLINE", anope_event_null); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGHOST", anope_event_chghost); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGIDENT", anope_event_chgident); addCoreMessage(IRCD,m);
|
||||
m = createMessage("CHGNAME", anope_event_chgname); addCoreMessage(IRCD,m);
|
||||
|
||||
+5
-1
@@ -8,10 +8,14 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="5"
|
||||
VERSION_BUILD="367"
|
||||
VERSION_BUILD="368"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.5 (368)
|
||||
# BUGS : N/A
|
||||
# NOTES : IRCD protocol clean up, and support for Numerics on Unreal32/RageIRCD
|
||||
#
|
||||
# BUILD : 1.7.5 (367)
|
||||
# BUGS :
|
||||
# NOTES : Changed UserKeys from uint to long uint.
|
||||
|
||||
Reference in New Issue
Block a user