diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-24 00:46:53 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-24 00:46:53 +0000 |
| commit | 3ffd9179262242acc01ed93b749aa55a938cf381 (patch) | |
| tree | f199314aa20920c5136206755786413ba5e809c0 /include/services.h | |
| parent | 14fc57d24b5b3ed622d0603011d33b06780ca071 (diff) | |
Rewrote arg parsing system, changed lots of std::string*s to std::string&, made --config arg, and made Anope print out a few lines of information when starting
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2833 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/services.h b/include/services.h index 40512c32b..e13866e81 100644 --- a/include/services.h +++ b/include/services.h @@ -231,6 +231,7 @@ extern int strncasecmp(const char *, const char *, size_t); #include "slist.h" /* pull in the various bits of STL to pull in */ +#include <iostream> #include <string> #include <map> #include <exception> @@ -1121,6 +1122,7 @@ struct Uplink { enum LogLevel { LOG_NORMAL, + LOG_TERMINAL, LOG_DEBUG, LOG_DEBUG_2, LOG_DEBUG_3, @@ -1131,14 +1133,13 @@ class CoreExport Alog { private: std::stringstream buf; - bool logit; + LogLevel Level; public: Alog(LogLevel val = LOG_NORMAL); ~Alog(); template<typename T> Alog& operator<<(T val) { - if (logit) - buf << val; + buf << val; return *this; } }; |
