summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-19 17:22:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-19 17:22:43 +0000
commitbadadc427a99e5483402c21bf5b7ae64722930e9 (patch)
treea0eb3f187458c32d8ca06dd78dce355e0166a2c2 /src/inspircd.cpp
parent315b9f6fd9ccbd3a916dc206e2275c46b46da626 (diff)
Visual studio's ability to translate tabs to four spaces as default frustrates and peplexes tabnazi cat.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index ade05f3ef..d09092e69 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -93,7 +93,7 @@ bool InspIRCd::FindServerName(const std::string &servername)
for(; itr != servernames.end(); ++itr)
if(**itr == servername)
return true;
- return false;
+ return false;
}
void InspIRCd::Exit(int status)
@@ -403,8 +403,8 @@ InspIRCd::InspIRCd(int argc, char** argv)
{ "debug", no_argument, &do_debug, 1 },
{ "nolog", no_argument, &do_nolog, 1 },
{ "runasroot", no_argument, &do_root, 1 },
- { "version", no_argument, &do_version, 1 },
- { "service", no_argument, &is_service, 1 },
+ { "version", no_argument, &do_version, 1 },
+ { "service", no_argument, &is_service, 1 },
{ 0, 0, 0, 0 }
};
@@ -497,7 +497,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
}
- /* Because of limitations in kqueue on freebsd, we must fork BEFORE we
+ /* Because of limitations in kqueue on freebsd, we must fork BEFORE we
* initialize the socket engine.
*/
SocketEngineFactory* SEF = new SocketEngineFactory();
@@ -634,8 +634,8 @@ void InspIRCd::EraseModule(int j)
{
if (v2 == j)
{
- Config->module_names.erase(v);
- break;
+ Config->module_names.erase(v);
+ break;
}
v2++;
}
@@ -810,8 +810,8 @@ bool InspIRCd::LoadModule(const char* filename)
{
int n_match = 0;
DIR* library = opendir(Config->ModPath);
- if (library)
- {
+ if (library)
+ {
/* Try and locate and load all modules matching the pattern */
dirent* entry = NULL;
while ((entry = readdir(library)))
@@ -898,7 +898,7 @@ bool InspIRCd::LoadModule(const char* filename)
}
else
{
- this->Log(DEFAULT,"Unable to load %s",modfile);
+ this->Log(DEFAULT,"Unable to load %s",modfile);
snprintf(MODERR,MAXBUF,"Factory function failed: Probably missing init_module() entrypoint.");
return false;
}
@@ -950,7 +950,7 @@ bool InspIRCd::LoadModule(const char* filename)
void InspIRCd::DoOneIteration(bool process_module_sockets)
{
#ifndef WIN32
- static rusage ru;
+ static rusage ru;
#endif
/* time() seems to be a pretty expensive syscall, so avoid calling it too much.
@@ -1154,9 +1154,9 @@ void FileLogger::Close()
if (log)
{
/* Burlex: Windows assumes nonblocking on FILE* pointers anyway, and also "file" fd's aren't the same
- as socket fd's. */
+ * as socket fd's. */
#ifndef WIN32
- int flags = fcntl(fileno(log), F_GETFL, 0);
+ int flags = fcntl(fileno(log), F_GETFL, 0);
fcntl(fileno(log), F_SETFL, flags ^ O_NONBLOCK);
#endif
if (buffer.size())