diff options
author | jantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-06 13:08:37 +0000 |
---|---|---|
committer | jantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-06 13:08:37 +0000 |
commit | 727bcf1fde40813f9bd148064ac377b972a6cdce (patch) | |
tree | 0341d4410a5740c0982441c0255d9f8e27f2be7b /src/init.c | |
parent | 699bee06c3a6e69e44f0e5b91d8e2054685c8213 (diff) |
Added option for delayed pseudo-client introduction. (Required for Insp 1.2)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2535 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/init.c b/src/init.c index 7990da17f..3f66a100d 100644 --- a/src/init.c +++ b/src/init.c @@ -765,6 +765,20 @@ int init_secondary(int ac, char **av) strerror(openlog_errno)); } + if (!ircd->delay_cl_intro) + init_tertiary(); + + /* Success! */ + return 0; +} + +/*************************************************************************/ + +void init_tertiary() +{ + /* Begin our burst..*/ + anope_cmd_bob(); + /* Bring in our pseudo-clients */ introduce_user(NULL); @@ -774,16 +788,14 @@ int init_secondary(int ac, char **av) anope_cmd_join(s_GlobalNoticer, LogChannel, time(NULL)); } + /* End our burst.. */ anope_cmd_eob(); /** - * Load our delayed modeles - modules that are planing on making clients need to wait till now - * where as modules wanting to modify our ircd connection messages need to load eariler :| - **/ + * Load our delayed modeles - modules that are planing on making clients need to wait till now + * where as modules wanting to modify our ircd connection messages need to load eariler :| + **/ modules_delayed_init(); - - /* Success! */ - return 0; } /*************************************************************************/ |