diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-19 01:22:28 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-19 01:22:28 +0000 |
commit | 17afa4f05ac0a4086c1feb5cad2f1a5d0f548c09 (patch) | |
tree | 26f8cd57e0677e456c6645fca5f8d639d758b5f0 | |
parent | ece985ccb3210a132d67381511642edfb359f5c4 (diff) |
Patch from aquanight to fix a problem introduced with some of the recent tidyups.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8733 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1094,6 +1094,8 @@ sub getosflags { return $config{OSNAME}; } +my ($mliflags, $mfrules, $mobjs, $mfcount) = ("", "", "", 0); + sub writefiles { my($writeheader) = @_; my $se = ""; @@ -1376,10 +1378,10 @@ m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/ch opendir(DIRHANDLE, "src/modules"); foreach my $name (sort readdir(DIRHANDLE)) { if ($name =~ /^m_(.+?)$/) { - my $mfrules = ""; - my $mobjs = ""; - my $mliflags = ""; - my $mfcount = 0; + $mfrules = ""; + $mobjs = ""; + $mliflags = ""; + $mfcount = 0; # A module made of multiple files, in a dir, e.g. src/modules/m_spanningtree/ if (defined(opendir(MDIRHANDLE, "src/modules/$name"))) { read_module_directory("src/modules/$name", $name); @@ -1406,7 +1408,6 @@ sub read_module_directory { return; } - my ($mliflags, $mfrules, $mobjs, $mfcount) = ("", "", "", 0); foreach my $fname (sort readdir(MDIRHANDLE)) { if ($fname =~ /\.cpp$/) { my $cmflags = getcompilerflags("$dpath/$fname"); |