Example #1
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void)
{
	Message *m;

	m = createMessage("436",       denora_event_436);
	addCoreMessage(IRCD,m);
	m = createMessage("AWAY",      denora_event_away);
	addCoreMessage(IRCD,m);
	m = createMessage("INVITE",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("JOIN",      denora_event_join);
	addCoreMessage(IRCD,m);
	m = createMessage("KICK",      denora_event_kick);
	addCoreMessage(IRCD,m);
	m = createMessage("KILL",      denora_event_kill);
	addCoreMessage(IRCD,m);
	m = createMessage("MODE",      denora_event_mode);
	addCoreMessage(IRCD,m);
	m = createMessage("MOTD",      denora_event_motd);
	addCoreMessage(IRCD,m);
	m = createMessage("NICK",      denora_event_nick);
	addCoreMessage(IRCD,m);
	m = createMessage("PONG",      denora_event_pong);
	addCoreMessage(IRCD,m);
	m = createMessage("NOTICE",    denora_event_notice);
	addCoreMessage(IRCD,m);
	m = createMessage("PART",      denora_event_part);
	addCoreMessage(IRCD,m);
	m = createMessage("PASS",      denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("PING",      denora_event_ping);
	addCoreMessage(IRCD,m);
	m = createMessage("PRIVMSG",   denora_event_privmsg);
	addCoreMessage(IRCD,m);
	m = createMessage("QUIT",      denora_event_quit);
	addCoreMessage(IRCD,m);
	m = createMessage("SERVER",    denora_event_server);
	addCoreMessage(IRCD,m);
	m = createMessage("SQUIT",     denora_event_squit);
	addCoreMessage(IRCD,m);
	m = createMessage("TOPIC",     denora_event_topic);
	addCoreMessage(IRCD,m);
	m = createMessage("TBURST",    denora_event_tburst);
	addCoreMessage(IRCD,m);
	m = createMessage("USER",      denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("WALLOPS",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("WHOIS",     denora_event_whois);
	addCoreMessage(IRCD,m);
	m = createMessage("AKILL",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GLOBOPS",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GNOTICE",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GOPER",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("RAKILL",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SILENCE",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSKILL",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSMODE",   denora_event_svsmode);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSNICK",   denora_event_svsnick);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSNOOP",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SQLINE",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("UNSQLINE",  denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("CAPAB",     denora_event_capab);
	addCoreMessage(IRCD,m);
	m = createMessage("SJOIN",     denora_event_sjoin);
	addCoreMessage(IRCD,m);
	m = createMessage("SVINFO",    denora_event_svinfo);
	addCoreMessage(IRCD,m);
	m = createMessage("EOB",       denora_event_eob);
	addCoreMessage(IRCD,m);
	m = createMessage("ADMIN",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("ERROR",     denora_event_error);
	addCoreMessage(IRCD,m);
	m = createMessage("SETHOST",   denora_event_sethost);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSID",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("KLINE",     denora_event_kline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNKLINE",   denora_event_unkline);
	addCoreMessage(IRCD,m);
	m = createMessage("XLINE",     denora_event_xline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNXLINE",   denora_event_unxline);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSTOPIC",  denora_event_topic);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSHOST",   denora_event_chghost);
	addCoreMessage(IRCD,m);
}
Example #2
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;

    updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
 
    m = createMessage("401",       xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("402",       xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("436",       xanadu_event_436); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      xanadu_event_away); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    xanadu_event_invite); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      xanadu_event_join); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      xanadu_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      xanadu_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      xanadu_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      xanadu_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      xanadu_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    xanadu_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("PART",      xanadu_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      xanadu_event_pass); addCoreMessage(IRCD,m);
    m = createMessage("PING",      xanadu_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   xanadu_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      xanadu_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    xanadu_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     xanadu_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     xanadu_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("WALLOPS",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WHOIS",     xanadu_event_whois); addCoreMessage(IRCD,m);
    m = createMessage("AKILL",     xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GNOTICE",   xanadu_event_gnotice); addCoreMessage(IRCD,m);
    m = createMessage("GOPER",     xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RAKILL",    xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SILENCE",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSKILL",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   xanadu_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNOOP",   xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SQLINE",    xanadu_event_sqline); addCoreMessage(IRCD,m);
    m = createMessage("UNSQLINE",  xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CAPAB", 	   xanadu_event_capab); addCoreMessage(IRCD,m);
    m = createMessage("CS",        xanadu_event_cs); addCoreMessage(IRCD,m);
    m = createMessage("HS",        xanadu_event_hs); addCoreMessage(IRCD,m);
    m = createMessage("MS",        xanadu_event_ms); addCoreMessage(IRCD,m);
    m = createMessage("NS",        xanadu_event_ns); addCoreMessage(IRCD,m);
    m = createMessage("OS",        xanadu_event_os); addCoreMessage(IRCD,m);
    m = createMessage("RS",        xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SGLINE",    xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SJOIN",     xanadu_event_sjoin); addCoreMessage(IRCD,m);
    m = createMessage("SS",        xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVINFO",    xanadu_event_svinfo); addCoreMessage(IRCD,m);
    m = createMessage("SZLINE",    xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNSGLINE",  xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNSZLINE",  xanadu_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CHGHOST",   xanadu_event_chghost); addCoreMessage(IRCD,m);
    m = createMessage("CHGIDENT",  xanadu_event_chgident); addCoreMessage(IRCD,m);
    m = createMessage("CHGNAME",   xanadu_event_chgname); addCoreMessage(IRCD,m);
    m = createMessage("SETHOST",   xanadu_event_sethost); addCoreMessage(IRCD,m);
    m = createMessage("SETIDENT",  xanadu_event_setident); addCoreMessage(IRCD,m);
    m = createMessage("SETNAME",   xanadu_event_setname); addCoreMessage(IRCD,m);
    m = createMessage("VS",        xanadu_event_vs); addCoreMessage(IRCD,m);
    m = createMessage("BURST",     xanadu_event_burst); addCoreMessage(IRCD,m);
    m = createMessage("TCTRL",     xanadu_event_tctrl); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",     xanadu_event_error); addCoreMessage(IRCD,m);
    m = createMessage("REHASH",    xanadu_event_rehash); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",     xanadu_event_admin); addCoreMessage(IRCD,m);
    m = createMessage("SNOTICE",   xanadu_event_snotice); addCoreMessage(IRCD,m);
}
Example #3
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;

    m = createMessage("401",       denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("436",       denora_event_436); addCoreMessage(IRCD,m);
    m = createMessage("402",       denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("USER",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WALLOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WHOIS",     denora_event_whois); addCoreMessage(IRCD,m);
    m = createMessage("AKILL",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GNOTICE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GOPER",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RAKILL",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SILENCE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSKILL",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNOOP",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SQLINE",    denora_event_sqline); addCoreMessage(IRCD,m);
    m = createMessage("UNSQLINE",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PROTOCTL",  denora_event_capab); addCoreMessage(IRCD,m);
    m = createMessage("CHGHOST",   denora_event_chghost); addCoreMessage(IRCD,m);
    m = createMessage("CHGIDENT",  denora_event_chgident); addCoreMessage(IRCD,m);
    m = createMessage("NETINFO",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SNETINFO",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SETHOST",   denora_event_sethost); addCoreMessage(IRCD,m);
    m = createMessage("SETIDENT",  denora_event_setident); addCoreMessage(IRCD,m);
    m = createMessage("SETNAME",   denora_event_setname); addCoreMessage(IRCD,m);
    m = createMessage("VCTRL",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("REHASH",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CREDITS",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",      denora_event_error); addCoreMessage(IRCD,m);
    m = createMessage("PONG",       denora_event_pong); addCoreMessage(IRCD,m);
    m = createMessage("NETG",       denora_event_null); addCoreMessage(IRCD,m);
}
Example #4
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;

    m = createMessage("ADDLINE",   denora_event_addline); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    m = createMessage("BURST",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CAPAB",     denora_event_capab); addCoreMessage(IRCD,m);
    m = createMessage("CHGHOST",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CHGIDENT",  denora_event_chgident); addCoreMessage(IRCD,m);
    m = createMessage("CHGNAME",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CREDITS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ELINE",     denora_event_eline); addCoreMessage(IRCD,m);
    m = createMessage("ENDBURST",  denora_event_eob); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("FHOST",     denora_event_fhost); addCoreMessage(IRCD,m);
    m = createMessage("FJOIN",     denora_event_fjoin); addCoreMessage(IRCD,m);
    m = createMessage("FMODE",     denora_event_fmode); addCoreMessage(IRCD,m);
    m = createMessage("FNAME",     denora_event_fname); addCoreMessage(IRCD,m);
    m = createMessage("FTOPIC",    denora_event_ftopic); addCoreMessage(IRCD,m);
    m = createMessage("GLINE",     denora_event_gline); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("IDLE",      denora_event_idle); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("METADATA",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MODENOTICE",denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("OPERNOTICE",denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("OPERQUIT",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("OPERTYPE",  denora_event_opertype); addCoreMessage(IRCD,m);
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PONG",      denora_event_pong); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("PUSH",      denora_event_push); addCoreMessage(IRCD,m);
    m = createMessage("QLINE",     denora_event_qline); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("REHASH",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SAJOIN",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SAMODE",    denora_event_svsmode); addCoreMessage(IRCD,m);
    m = createMessage("SANICK",    denora_event_sanick); addCoreMessage(IRCD,m);
    m = createMessage("SAPART",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SETHOST",   denora_event_fhost); addCoreMessage(IRCD,m);
    m = createMessage("SETIDENT",  denora_event_setident); addCoreMessage(IRCD,m);
    m = createMessage("SETNAME",   denora_event_fname); addCoreMessage(IRCD,m);
    m = createMessage("SILENCE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SNONOTICE", denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("RSQUIT",    denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("SVSHOLD",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSJOIN",   denora_event_svsjoin); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   denora_event_svsmode); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("VERSION",   denora_event_version); addCoreMessage(IRCD,m);
    m = createMessage("WALLOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WHOIS",     denora_event_whois); addCoreMessage(IRCD,m);
    m = createMessage("ZLINE",     denora_event_zline); addCoreMessage(IRCD,m);

}
Example #5
0
void moduleAddIRCDMsgs(void)
{
    Message *m;
    int status;

    m = createMessage("ERROR", denora_event_error);
    addCoreMessage(IRCD, m);

    m = createMessage("NOTICE", denora_event_null);
    addCoreMessage(IRCD, m);

    m = createMessage("SERVER", denora_event_server);
    addCoreMessage(IRCD, m);

    m = createMessage("PASS", denora_event_null);
    addCoreMessage(IRCD, m);

    /* let the p10 tokens begin */

    /* end of burst */
    m = createMessage("EB", denora_event_eob);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_DEBUG, "debug: unable to bind to EB error [%d]", status);
    }

    /* nick */
    m = createMessage("N", denora_event_nick);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_DEBUG, "debug: unable to bind to N error [%d]", status);
    }

    /* ping */
    m = createMessage("G", denora_event_ping);
    addCoreMessage(IRCD, m);

    /* pong */
    m = createMessage("Z", denora_event_null);
    addCoreMessage(IRCD, m);

    /* MODE */
    m = createMessage("M", denora_event_mode);
    addCoreMessage(IRCD, m);

    /* OPMODE */
    m = createMessage("OM", denora_event_mode);
    addCoreMessage(IRCD,m);

    /* CREATE */
    m = createMessage("C", denora_event_create);
    addCoreMessage(IRCD, m);

    /* JOIN */
    m = createMessage("J", denora_event_join);
    addCoreMessage(IRCD, m);

    /* QUIT */
    m = createMessage("Q", denora_event_quit);
    addCoreMessage(IRCD, m);

    /* TOPIC */
    m = createMessage("T", denora_event_topic);
    addCoreMessage(IRCD, m);

    /* MOTD */
    m = createMessage("MO", denora_event_motd);
    addCoreMessage(IRCD, m);

    /* KICK */
    m = createMessage("K", denora_event_kick);
    addCoreMessage(IRCD, m);

    /* AWAY */
    m = createMessage("A", denora_event_away);
    addCoreMessage(IRCD, m);

    /* ADMIN */
    m = createMessage("AD", denora_event_null);
    addCoreMessage(IRCD, m);

    /* PART */
    m = createMessage("L", denora_event_part);
    addCoreMessage(IRCD, m);

    /* BURST */
    m = createMessage("B", denora_event_sjoin);
    addCoreMessage(IRCD, m);

    /* PRIVMSG */
    m = createMessage("P", denora_event_privmsg);
    addCoreMessage(IRCD, m);

    /* NOTICE */
    m = createMessage("O", denora_event_notice);
    addCoreMessage(IRCD, m);

    /* SQUIT */
    m = createMessage("SQ", denora_event_squit);
    addCoreMessage(IRCD, m);

    /* INVITE */
    m = createMessage("I", denora_event_null);
    addCoreMessage(IRCD, m);

    /* DESYNCH */
    m = createMessage("DS", denora_event_error);
    addCoreMessage(IRCD, m);

    /* WALLOP */
    m = createMessage("WA", denora_event_null);
    addCoreMessage(IRCD, m);

    /* VERSION */
    m = createMessage("V", m_version);
    addCoreMessage(IRCD, m);

    /* WHOIS */
    m = createMessage("W", denora_event_whois);
    addCoreMessage(IRCD, m);

    /* SERVER */
    m = createMessage("S", denora_event_server);
    addCoreMessage(IRCD, m);

    /* PONG */
    m = createMessage("Z", denora_event_pong);
    addCoreMessage(IRCD, m);

    /* STATS */
    m = createMessage("R", m_stats);
    addCoreMessage(IRCD, m);

    /* ACCCOUNT */
    m = createMessage("AC", denora_event_null);
    addCoreMessage(IRCD, m);

    /* GLINE */
    m = createMessage("GL", denora_event_gline);
    addCoreMessage(IRCD, m);

    /* GLINE */
    m = createMessage("JU", denora_event_jupe);
    addCoreMessage(IRCD, m);

    /* INFO */
    m = createMessage("F", denora_event_null);
    addCoreMessage(IRCD, m);

    /* SETTIME */
    m = createMessage("SE", denora_event_null);
    addCoreMessage(IRCD, m);

    /* TIME */
    m = createMessage("TI", m_time);
    addCoreMessage(IRCD, m);

    /* TRACE */
    m = createMessage("TR", denora_event_null);
    addCoreMessage(IRCD, m);

    /* RPING */
    m = createMessage("RI", denora_event_null);
    addCoreMessage(IRCD, m);

    /* End of Burst Acknowledge */
    m = createMessage("EA", denora_event_null);
    addCoreMessage(IRCD, m);

    /* PRIVS */
    m = createMessage("PRIVS", denora_event_null);
    addCoreMessage(IRCD,m);

    /* CLEARMODE */
    m = createMessage("CM", denora_event_clearmode);
    addCoreMessage(IRCD,m);
}
Example #6
0
/**
 * Add Internal Messages that are not wired to any ircd
 *
 * @return void - no returend value
 *
 */
void moduleAddMsgs(void)
{
    Message *m;
    int status;

    m = createMessage("STATS", m_stats);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for STATS [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("TIME", m_time);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for TIME [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("VERSION", m_version);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for VERSION [%d][%s]",
             status, ModuleGetErrStr(status));
    }

    m = createMessage("005", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 005 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("020", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 020 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("105", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 105 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("216", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 216 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("217", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 217 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("219", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 219 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    /* /stats k */
    m = createMessage("223", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 223 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("244", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 244 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("249", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 249 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("250", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 250 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("263", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 263 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("304", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 304 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("401", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 401 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("402", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 402 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("422", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 422 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("451", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 451 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("461", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 461 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("481", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 481 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("482", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 482 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("503", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 503 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    /* Ithildin Adds some replies */
    m = createMessage("771", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 771 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("773", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 773 [%d][%s]", status,
             ModuleGetErrStr(status));
    }

    m = createMessage("774", denora_event_null);
    status = addCoreMessage(IRCD, m);
    if (status != MOD_ERR_OK) {
        alog(LOG_NORMAL,
             "Error Occurried setting message for 774 [%d][%s]", status,
             ModuleGetErrStr(status));
    }
}
Example #7
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;

    m = createMessage("401",       denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("436",       denora_event_436); addCoreMessage(IRCD,m);
    m = createMessage("402",       denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("6",       denora_event_away); addCoreMessage(IRCD,m);
    }
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("*",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("C",       denora_event_join); addCoreMessage(IRCD,m);
    }
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("H",       denora_event_kick); addCoreMessage(IRCD,m);
    }
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage(".",       denora_event_kill); addCoreMessage(IRCD,m);
    }
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("G",       denora_event_mode); addCoreMessage(IRCD,m);
    }
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("F",       denora_event_motd); addCoreMessage(IRCD,m);
    }
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("&",       denora_event_nick); addCoreMessage(IRCD,m);
    }
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("B",       denora_event_notice); addCoreMessage(IRCD,m);
    }
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("D",       denora_event_part); addCoreMessage(IRCD,m);
    }
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("<",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("9",       denora_event_ping); addCoreMessage(IRCD,m);
    }
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!",       denora_event_privmsg); addCoreMessage(IRCD,m);
    }
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage(",",       denora_event_quit); addCoreMessage(IRCD,m);
    }
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("'",       denora_event_server); addCoreMessage(IRCD,m);
    }
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("-",       denora_event_squit); addCoreMessage(IRCD,m);
    }
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage(")",       denora_event_topic); addCoreMessage(IRCD,m);
    }
    m = createMessage("USER",      denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("%",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("WALLOPS",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("=",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("WHOIS",     denora_event_whois); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("#",       denora_event_whois); addCoreMessage(IRCD,m);
    }
    m = createMessage("AKILL",     denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("V",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("]",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("GNOTICE",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("Z",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("GOPER",     denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("[",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("RAKILL",    denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("Y",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SILENCE",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("U",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SVSKILL",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("h",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SVSMODE",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("n",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SVSNICK",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("e",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SVSNOOP",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("f",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SQLINE",    denora_event_sqline); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("c",       denora_event_sqline); addCoreMessage(IRCD,m);
    }
    m = createMessage("UNSQLINE",  denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("d",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("PROTOCTL",  denora_event_capab); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("_",       denora_event_capab); addCoreMessage(IRCD,m);
    }
    m = createMessage("CHGHOST",   denora_event_chghost); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!<",       denora_event_chghost); addCoreMessage(IRCD,m);
    }
    m = createMessage("CHGIDENT",  denora_event_chgident); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!=",       denora_event_chgident); addCoreMessage(IRCD,m);
    }
    m = createMessage("NETINFO",   denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("u",       denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SNETINFO",  denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!1",      denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("SETHOST",   denora_event_sethost); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!8",       denora_event_sethost); addCoreMessage(IRCD,m);
    }
    m = createMessage("SETIDENT",  denora_event_setident); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!9",       denora_event_setident); addCoreMessage(IRCD,m);
    }
    m = createMessage("SETNAME",   denora_event_setname); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!;",       denora_event_setname); addCoreMessage(IRCD,m);
    }
    m = createMessage("VCTRL",     denora_event_null); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("!I",      denora_event_null); addCoreMessage(IRCD,m);
    }
    m = createMessage("REHASH",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CREDITS",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",      denora_event_error); addCoreMessage(IRCD,m);
    m = createMessage("PONG",       denora_event_pong); addCoreMessage(IRCD,m);
    if (UseTokens) {
      m = createMessage("9",        denora_event_pong); addCoreMessage(IRCD,m);
    }
    m = createMessage("NETG",       denora_event_null); addCoreMessage(IRCD,m);
}
Example #8
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void)
{
	Message *m;

	if (UseTS6)
	{
		if (!BadPtr(Numeric))
		{
			TS6SID = sstrdup(Numeric);
			UseTSMODE = 1;  /* TMODE */
		}
		else
		{
			alog(LOG_NORMAL, "TS6 requires the use of Numeric - exiting");
			exit(1);
		}
	}

	m = createMessage("436",       denora_event_436);
	addCoreMessage(IRCD,m);
	m = createMessage("439",       denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("AWAY",      denora_event_away);
	addCoreMessage(IRCD,m);
	m = createMessage("INVITE",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("JOIN",      denora_event_join);
	addCoreMessage(IRCD,m);
	m = createMessage("KICK",      denora_event_kick);
	addCoreMessage(IRCD,m);
	m = createMessage("KILL",      denora_event_kill);
	addCoreMessage(IRCD,m);
	m = createMessage("MODE",      denora_event_mode);
	addCoreMessage(IRCD,m);
	m = createMessage("TMODE",     denora_event_tmode);
	addCoreMessage(IRCD,m);
	m = createMessage("MOTD",      denora_event_motd);
	addCoreMessage(IRCD,m);
	m = createMessage("NICK",      denora_event_nick);
	addCoreMessage(IRCD,m);
	m = createMessage("PONG",      denora_event_pong);
	addCoreMessage(IRCD,m);
	m = createMessage("NOTICE",    denora_event_notice);
	addCoreMessage(IRCD,m);
	m = createMessage("PART",      denora_event_part);
	addCoreMessage(IRCD,m);
	m = createMessage("PASS",      denora_event_pass);
	addCoreMessage(IRCD,m);
	m = createMessage("PING",      denora_event_ping);
	addCoreMessage(IRCD,m);
	m = createMessage("PRIVMSG",   denora_event_privmsg);
	addCoreMessage(IRCD,m);
	m = createMessage("QUIT",      denora_event_quit);
	addCoreMessage(IRCD,m);
	m = createMessage("SERVER",    denora_event_server);
	addCoreMessage(IRCD,m);
	m = createMessage("SQUIT",     denora_event_squit);
	addCoreMessage(IRCD,m);
	m = createMessage("TOPIC",     denora_event_topic);
	addCoreMessage(IRCD,m);
	m = createMessage("TBURST",    denora_event_tburst);
	addCoreMessage(IRCD,m);
	m = createMessage("USER",      denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("WALLOPS",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("WHOIS",     denora_event_whois);
	addCoreMessage(IRCD,m);
	m = createMessage("AKILL",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GLOBOPS",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GNOTICE",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("GOPER",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("RAKILL",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SILENCE",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSKILL",   denora_event_kill);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSMODE",   denora_event_svsmode);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSNOOP",   denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("SQLINE",    denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("UNSQLINE",  denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("CAPAB",     denora_event_capab);
	addCoreMessage(IRCD,m);
	m = createMessage("SJOIN",     denora_event_sjoin);
	addCoreMessage(IRCD,m);
	m = createMessage("SVINFO",    denora_event_svinfo);
	addCoreMessage(IRCD,m);
	m = createMessage("EOB",       denora_event_eob);
	addCoreMessage(IRCD,m);
	m = createMessage("ADMIN",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("ERROR",     denora_event_error);
	addCoreMessage(IRCD,m);
	m = createMessage("SETHOST",   denora_event_sethost);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSID",     denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("KLINE",     denora_event_kline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNKLINE",   denora_event_unkline);
	addCoreMessage(IRCD,m);
	m = createMessage("XLINE",     denora_event_xline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNXLINE",   denora_event_unxline);
	addCoreMessage(IRCD,m);
	m = createMessage("SVSTOPIC",  denora_event_topic);
	addCoreMessage(IRCD,m);
	m = createMessage("ENCAP",     denora_event_encap);
	addCoreMessage(IRCD,m);
	m = createMessage("BMASK",     denora_event_bmask);
	addCoreMessage(IRCD,m);
	m = createMessage("SID",       denora_event_sid);
	addCoreMessage(IRCD,m);
	m = createMessage("KLINE",     denora_event_kline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNKLINE",   denora_event_unkline);
	addCoreMessage(IRCD,m);
	m = createMessage("RKLINE",    denora_event_kline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNRKLINE",  denora_event_unkline);
	addCoreMessage(IRCD,m);
	m = createMessage("XLINE",     denora_event_xline);
	addCoreMessage(IRCD,m);
	m = createMessage("RXLINE",    denora_event_xline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNXLINE",   denora_event_unxline);
	addCoreMessage(IRCD,m);
	m = createMessage("UNRXLINE",  denora_event_unxline);
	addCoreMessage(IRCD,m);
	m = createMessage("UID",       denora_event_nick);
	addCoreMessage(IRCD,m);
	m = createMessage("OPERWALL",  denora_event_null);
	addCoreMessage(IRCD,m);
	m = createMessage("RESV",      denora_event_null);
	addCoreMessage(IRCD,m);
}
Example #9
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;

    m = createMessage("436",       denora_event_436); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    m = createMessage("FJOIN",     denora_event_fjoin); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("IDLE",      denora_event_idle); addCoreMessage(IRCD,m);

    m = createMessage("FHOST",     denora_event_fhost); addCoreMessage(IRCD,m);
    m = createMessage("FNAME",     denora_event_fname); addCoreMessage(IRCD,m);
    m = createMessage("PONG",      denora_event_pong); addCoreMessage(IRCD,m);
    m = createMessage("METADATA",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("FMODE",     denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("FTOPIC",    denora_event_ftopic); addCoreMessage(IRCD,m);
    m = createMessage("VERSION",   denora_event_version); addCoreMessage(IRCD,m);
    m = createMessage("OPERTYPE",  denora_event_opertype); addCoreMessage(IRCD,m);
    m = createMessage("ADDLINE",   denora_event_addline); addCoreMessage(IRCD,m);
    m = createMessage("GLINE",     denora_event_gline); addCoreMessage(IRCD,m);
    m = createMessage("ZLINE",     denora_event_zline); addCoreMessage(IRCD,m);
    m = createMessage("QLINE",     denora_event_qline); addCoreMessage(IRCD,m);
    m = createMessage("KLINE",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ELINE",     denora_event_eline); addCoreMessage(IRCD,m);
    m = createMessage("BURST",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ENDBURST",  denora_event_eob); addCoreMessage(IRCD,m);
    m = createMessage("CAPAB",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("AES",       denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   denora_event_svsnick); addCoreMessage(IRCD,m);
    m = createMessage("SANICK",    denora_event_sanick); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   denora_event_svsmode); addCoreMessage(IRCD,m);
    m = createMessage("SAMODE",    denora_event_svsmode); addCoreMessage(IRCD,m);
    m = createMessage("SVSJOIN",   denora_event_svsjoin); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SAJOIN",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SAPART",    denora_event_null); addCoreMessage(IRCD,m);

}
Example #10
0
void
moduleAddIRCDMsgs (void)
{
  Message *m;

  updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");

  m = createMessage ("401", anope_event_null);
  addCoreMessage (IRCD, m);
  m = createMessage ("402", 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);
  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", anope_event_notice);
  addCoreMessage (IRCD, m);
  m = createMessage ("PART", anope_event_part);
  addCoreMessage (IRCD, m);
  m = createMessage ("PASS", anope_event_pass);
  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 ("TBURST", anope_event_tburst);
  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 ("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);
  m = createMessage ("EOB", anope_event_eob);
  addCoreMessage (IRCD, m);
  m = createMessage ("ADMIN", anope_event_admin);
  addCoreMessage (IRCD, m);
  m = createMessage ("ERROR", anope_event_error);
  addCoreMessage (IRCD, m);
  m = createMessage ("ENCAP", anope_event_encap);
  addCoreMessage (IRCD, m);
  m = createMessage ("SVSMODE", anope_event_mode);
  addCoreMessage (IRCD, m);
}
Example #11
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;
    
    m = createMessage("436",       denora_event_436); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("PONG",      denora_event_pong); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("USER",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WALLOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WHOIS",     denora_event_whois); addCoreMessage(IRCD,m);
    m = createMessage("AKILL",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GNOTICE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GOPER",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RAKILL",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SILENCE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSKILL",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNOOP",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SQLINE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNSQLINE",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("NEWMASK",   denora_event_newmask); addCoreMessage(IRCD,m);
    m = createMessage("CAPAB", 	   denora_event_capab); addCoreMessage(IRCD,m);
    m = createMessage("SVINFO",    denora_event_svinfo); addCoreMessage(IRCD,m);
    m = createMessage("SVSINFO",   denora_event_svsinfo); addCoreMessage(IRCD,m);
    m = createMessage("SJOIN",     denora_event_sjoin); addCoreMessage(IRCD,m);
    m = createMessage("REHASH",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CREDITS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",     denora_event_error); addCoreMessage(IRCD,m);
    m = createMessage("NJOIN",     denora_event_sjoin); addCoreMessage(IRCD,m);
    m = createMessage("NNICK",     denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("ZLINE",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNZLINE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CHGHOST",   denora_event_chghost); addCoreMessage(IRCD,m);
}
Example #12
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void)
{
    Message *m;

    m = createMessage("436",       denora_event_436); addCoreMessage(IRCD,m);
    m = createMessage("AWAY",      denora_event_away); addCoreMessage(IRCD,m);
    m = createMessage("INVITE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PONG",      denora_event_pong); addCoreMessage(IRCD,m);
    m = createMessage("JOIN",      denora_event_join); addCoreMessage(IRCD,m);
    m = createMessage("KICK",      denora_event_kick); addCoreMessage(IRCD,m);
    m = createMessage("KILL",      denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("MODE",      denora_event_mode); addCoreMessage(IRCD,m);
    m = createMessage("MOTD",      denora_event_motd); addCoreMessage(IRCD,m);
    m = createMessage("NICK",      denora_event_nick); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",    denora_event_notice); addCoreMessage(IRCD,m);
    m = createMessage("PART",      denora_event_part); addCoreMessage(IRCD,m);
    m = createMessage("PASS",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("PING",      denora_event_ping); addCoreMessage(IRCD,m);
    m = createMessage("PRIVMSG",   denora_event_privmsg); addCoreMessage(IRCD,m);
    m = createMessage("QUIT",      denora_event_quit); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",    denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("SQUIT",     denora_event_squit); addCoreMessage(IRCD,m);
    m = createMessage("TOPIC",     denora_event_topic); addCoreMessage(IRCD,m);
    m = createMessage("USER",      denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WALLOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("WHOIS",     denora_event_whois); addCoreMessage(IRCD,m);
    m = createMessage("AKILL",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GLOBOPS",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GNOTICE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("GOPER",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RAKILL",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SILENCE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSKILL",   denora_event_kill); addCoreMessage(IRCD,m);
    m = createMessage("SVSMODE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNICK",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVSNOOP",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SQLINE",    denora_event_sqline); addCoreMessage(IRCD,m);
    m = createMessage("UNSQLINE",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("CAPAB", 	   denora_event_capab); addCoreMessage(IRCD,m);
    m = createMessage("CS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("HS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("MS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("NS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("OS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SGLINE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SJOIN",     denora_event_sjoin); addCoreMessage(IRCD,m);
    m = createMessage("SS",        denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SVINFO",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SZLINE",    denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNSGLINE",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("UNSZLINE",  denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ERROR",     denora_event_error); addCoreMessage(IRCD,m);
    m = createMessage("LUSERSLOCK",denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("BURST",     denora_event_burst); addCoreMessage(IRCD,m);
    m = createMessage("ADMIN",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("RESYNCH",   denora_event_null); addCoreMessage(IRCD,m);
}
Example #13
0
/* *INDENT-OFF* */
void moduleAddIRCDMsgs(void) {
    Message *m;
    m = createMessage("ERROR",    denora_event_error); addCoreMessage(IRCD,m);
    m = createMessage("NOTICE",   denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("SERVER",   denora_event_server); addCoreMessage(IRCD,m);
    m = createMessage("PASS",     denora_event_null); addCoreMessage(IRCD,m);
    m = createMessage("ALIST",    denora_event_null); addCoreMessage(IRCD,m);

    /* let the p10 tokens begin */

    /* end of burst */
    m = createMessage("EB",       denora_event_eob); addCoreMessage(IRCD,m);
    /* nick */
    m = createMessage("N",        denora_event_nick); addCoreMessage(IRCD,m);
    /* ping */
    m = createMessage("G",        denora_event_ping); addCoreMessage(IRCD,m);
    /* pong */
    m = createMessage("RO",       denora_event_pong); addCoreMessage(IRCD,m);
    /* MODE */
    m = createMessage("M",        denora_event_mode); addCoreMessage(IRCD,m);
    /* OPMODE */
    m = createMessage("OM",       denora_event_mode); addCoreMessage(IRCD,m);
    /* CREATE */
    m = createMessage("C",        denora_event_create); addCoreMessage(IRCD,m);
    /* JOIN */
    m = createMessage("J",        denora_event_join); addCoreMessage(IRCD,m);
    /* QUIT */
    m = createMessage("Q",        denora_event_quit); addCoreMessage(IRCD,m);
    /* TOPIC */
    m = createMessage("T",        denora_event_topic); addCoreMessage(IRCD,m);
    /* MOTD */
    m = createMessage("MO",       denora_event_motd); addCoreMessage(IRCD,m);
    /* KICK */
    m = createMessage("K",        denora_event_kick); addCoreMessage(IRCD,m);
    /* AWAY */
    m = createMessage("A",        denora_event_away); addCoreMessage(IRCD,m);
    /* ADMIN */
    m = createMessage("AD",       denora_event_null); addCoreMessage(IRCD,m);
    /* PART */
    m = createMessage("L",        denora_event_part); addCoreMessage(IRCD,m);
    /* BURST */
    m = createMessage("B",        denora_event_sjoin); addCoreMessage(IRCD,m);
    /* PRIVMSG */
    m = createMessage("P",        denora_event_privmsg); addCoreMessage(IRCD,m);
    /* NOTICE */
    m = createMessage("O",        denora_event_notice); addCoreMessage(IRCD,m);
    /* SQUIT */
    m = createMessage("SQ",       denora_event_squit); addCoreMessage(IRCD,m);
    /* INVITE */
    m = createMessage("I",        denora_event_null); addCoreMessage(IRCD,m);
    /* DESYNCH */
    m = createMessage("DS",       denora_event_error); addCoreMessage(IRCD,m);
    /* WALLOP */
    m = createMessage("WA",       denora_event_null); addCoreMessage(IRCD,m);
    /* VERSION */
    m = createMessage("V",        m_version); addCoreMessage(IRCD,m);
    /* WHOIS */
    m = createMessage("W",        denora_event_whois); addCoreMessage(IRCD,m);
    /* SERVER */
    m = createMessage("S",        denora_event_server); addCoreMessage(IRCD,m);
    /* STATS */
    m = createMessage("R",        m_stats); addCoreMessage(IRCD,m);
    /* ACCCOUNT */
    m = createMessage("AC",       denora_event_account); addCoreMessage(IRCD,m);
    /* KILL */
    m = createMessage("D",        denora_event_kill); addCoreMessage(IRCD,m);
    /* GLINE */
    m = createMessage("GL",       denora_event_gline); addCoreMessage(IRCD,m);
    /* SHUN */
    m = createMessage("SU",       denora_event_shun); addCoreMessage(IRCD,m);
    /* ZLINE */
    m = createMessage("ZL",       denora_event_zline); addCoreMessage(IRCD,m);
    /* JUPE */
    m = createMessage("JU",       denora_event_jupe); addCoreMessage(IRCD,m);
    /* INFO */
    m = createMessage("F",        denora_event_null); addCoreMessage(IRCD,m);
    /* SETTIME */
    m = createMessage("SE",       denora_event_null); addCoreMessage(IRCD,m);
    /* TIME */
    m = createMessage("TI",       m_time); addCoreMessage(IRCD,m);
    /* TRACE */
    m = createMessage("TR",       denora_event_null); addCoreMessage(IRCD,m);
    /* RPING */
    m = createMessage("RI",       denora_event_null); addCoreMessage(IRCD,m);
    /* SILENCE */
    m = createMessage("U",        denora_event_null); addCoreMessage(IRCD,m);
    /* End of Burst Acknowledge */
    m = createMessage("EA",       denora_event_null); addCoreMessage(IRCD,m);
    /* FAKEHOST */
    m = createMessage("FA",       denora_event_fakehost); addCoreMessage(IRCD,m);
    /* SWHOIS */
    m = createMessage("SW",       denora_event_swhois); addCoreMessage(IRCD,m);
    /* MARK */
    m = createMessage("MK",       denora_event_mark); addCoreMessage(IRCD,m);
    /* SVSIDENT */
    m = createMessage("SID",      denora_event_setident); addCoreMessage(IRCD,m);
    /* SVSINFO */
    m = createMessage("SI",       denora_event_setname); addCoreMessage(IRCD,m);
    /* SNO */
    m = createMessage("SNO",      denora_event_null); addCoreMessage(IRCD,m);
    /* PRIVS */
    m = createMessage("PRIVS",    denora_event_null); addCoreMessage(IRCD,m);
    /* CLEARMODE */
    m = createMessage("CM",       denora_event_clearmode); addCoreMessage(IRCD,m);
    /* STATS REPLY */
    m = createMessage("230",      denora_event_null); addCoreMessage(IRCD,m);
}