summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-23 21:23:05 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-03-23 21:23:05 +0000
commit605353f9ef380f96e3bba5b5558a16162158616f (patch)
tree306bd676b8ba1a00fe27fa29dd95d5f930e7ff47 /src
parentc5536f67df42ef8bcbe694ffa6f0b8556847d041 (diff)
BUILD : 1.7.14 (1021) BUGS : NOTES : Anope 1.7.14 RC1
git-svn-id: svn://svn.anope.org/anope/trunk@1021 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@746 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/init.c17
-rw-r--r--src/main.c10
-rw-r--r--src/process.c8
3 files changed, 18 insertions, 17 deletions
diff --git a/src/init.c b/src/init.c
index 14f8db1a0..b2bb35e1a 100644
--- a/src/init.c
+++ b/src/init.c
@@ -484,14 +484,13 @@ int init_secondary(int ac, char **av)
return -1;
}
}
- if (!SupportedWindowsVersion()) {
- char *winver = GetWindowsVersion();
- alog("%s is not a supported version of Windows", winver);
- free(winver);
- return -1;
- }
-
- if (!nofork) {
+ if (!SupportedWindowsVersion()) {
+ char *winver = GetWindowsVersion();
+ alog("%s is not a supported version of Windows", winver);
+ free(winver);
+ return -1;
+ }
+ if (!nofork) {
alog("Launching Anope into the background");
FreeConsole();
}
@@ -527,7 +526,7 @@ int init_secondary(int ac, char **av)
#else
for (i = 1; i <= 31; i++) {
#endif
- signal(i, SIG_IGN);
+ signal(i, SIG_IGN);
}
#ifndef USE_THREADS
diff --git a/src/main.c b/src/main.c
index 1da547e1f..db73e5ae5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -649,10 +649,10 @@ void do_backtrace(int show_segheader)
alog("Backtrace: not available on this platform");
#endif
#else
- char *winver;
- winver = GetWindowsVersion();
- alog("Backtrace: not available on Windows");
- alog("Running %S", winver);
- free(winver);
+ char *winver;
+ winver = GetWindowsVersion();
+ alog("Backtrace: not available on Windows");
+ alog("Running %S", winver);
+ free(winver);
#endif
}
diff --git a/src/process.c b/src/process.c
index bde7dda20..8de1e6c87 100644
--- a/src/process.c
+++ b/src/process.c
@@ -254,13 +254,15 @@ void process()
Bahmut ircd aliases but not for pseudo clients on. So additional logic is
that if the ac is greater then 1 copy av[1] else copy av[0]
I also changed from if statments, cause attempting to access a array member
- that is not set can lead to odd things - TSL (3/12/06) */
+ that is not set can lead to odd things - TSL (3/12/06) */
if (!anope_set_mod_current_buffer(ac, av)) {
if (ac >= 1) {
if (nickIsServices(av[0], 1)) {
- mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
+ mod_current_buffer =
+ (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
} else {
- mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
+ mod_current_buffer =
+ (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
}
} else {
mod_current_buffer = NULL;