diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-04 17:18:45 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-04 17:18:45 +0000 |
commit | 0d6b0dcf6ebaf364c7a3943100c29bf790b62806 (patch) | |
tree | 5e041f0e783fe42285aeb9d62cc9ba7da2262feb /src/protocol | |
parent | 783857b1c05a7a0ffee5499aef99801f597d78e9 (diff) |
BUILD : 1.7.8 (768) BUGS : N/A NOTES : synced with [brain]s cvs server
git-svn-id: svn://svn.anope.org/anope/trunk@768 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@529 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol')
-rw-r--r-- | src/protocol/inspircd.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c index 3f23332e5..fe85edd0d 100644 --- a/src/protocol/inspircd.c +++ b/src/protocol/inspircd.c @@ -383,13 +383,9 @@ void inspircd_set_umode(User * user, int ac, char **av) while (*modes) { - /* This looks better, much better than "add ? (do_add) : (do_remove)". - * At least this is readable without paying much attention :) -GD - */ - if (add) - user->mode |= umodes[(int) *modes]; - else - user->mode &= ~umodes[(int) *modes]; + add ? (user->mode |= umodes[(int) *modes]) : (user->mode &= + ~umodes[(int) + *modes]); switch (*modes++) { case '+': @@ -439,7 +435,7 @@ void moduleAddIRCDMsgs(void) { m = createMessage("$", anope_event_null); addCoreMessage(IRCD,m); // send routing table m = createMessage("X", anope_event_null); addCoreMessage(IRCD,m); // begin netburst NOW - m = createMessage("Y", anope_event_null); addCoreMessage(IRCD,m); // end of UPLINK netburst + m = createMessage("Y", anope_event_eob); addCoreMessage(IRCD,m); // end of UPLINK netburst m = createMessage("H", anope_event_null); addCoreMessage(IRCD,m); // local sync start m = createMessage("F", anope_event_null); addCoreMessage(IRCD,m); // local sync end m = createMessage("f", anope_event_null); addCoreMessage(IRCD,m); // local U-lined sync end @@ -668,7 +664,14 @@ void inspircd_cmd_protoctl() /* PASS */ void inspircd_cmd_pass(char *pass) { -// send_cmd(NULL, "PASS :%s", pass); +} + +int anope_event_eob(char *source, int ac, char **av) +{ + send_cmd(NULL, "/ NickServ"); + send_cmd(NULL, "v %s Anope-%s %s :%s - %s -- %s", ServerName, + version_number, ServerName, ircd->name, version_flags, + version_build); } /* SERVER name hop descript */ @@ -691,9 +694,6 @@ void inspircd_cmd_server(char *servname, int hop, char *descript) break; } send_cmd(NULL, "U %s %s :%s", servname, pw, descript); - send_cmd(NULL, "v %s Anope-%s %s :%s - %s -- %s", servname, - version_number, ServerName, ircd->name, version_flags, - version_build); } } @@ -1200,6 +1200,8 @@ int anope_event_chghost(char *source, int ac, char **av) return MOD_CONT; } + + /* EVENT: SERVER */ int anope_event_server(char *source, int ac, char **av) { @@ -1473,7 +1475,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Brain"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("InspIRCd 1.0 Beta3"); |