summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-05 19:11:01 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-07-05 19:11:01 +0000
commitc3f5b953862257aff748d1e642b087303e4baa68 (patch)
treedb7e05305c3e5b0e573815a1308931aaac1ffe65 /init.c
parent7b2010245b2b20b627f79f9364d77fe840bf4b72 (diff)
BUILD : 1.7.4 (230) BUGS : 97 NOTES : Fixed the need of hybrid to have Global in LogChan on startup
git-svn-id: svn://svn.anope.org/anope/trunk@230 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@163 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'init.c')
-rw-r--r--init.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/init.c b/init.c
index 53a0b21ef..c6daf5918 100644
--- a/init.c
+++ b/init.c
@@ -382,10 +382,6 @@ static int parse_options(int ac, char **av)
nofork = 1;
} else if (strcmp(s, "logchan") == 0) {
logchan = 1;
-#ifdef IRC_HYBRID
- fprintf(stderr,
- "LogChan will only work if your logchannel is not set to +n\n");
-#endif
} else if (strcmp(s, "forceload") == 0) {
forceload = 1;
} else if (!strcmp(s, "noexpire")) {
@@ -826,6 +822,14 @@ int init(int ac, char **av)
/* Bring in our pseudo-clients */
introduce_user(NULL);
+ /* And hybrid needs Global joined in the logchan */
+#ifdef IRC_HYBRID
+ if (logchan) {
+ send_cmd(NULL, "SJOIN %ld %s + :%s", time(NULL), LogChannel,
+ s_GlobalNoticer);
+ }
+#endif
+
/**
* 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 :|