summaryrefslogtreecommitdiff
path: root/src/modules/ns_noop_convert.c
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-31 06:15:29 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-31 06:15:29 +0000
commitaa4b3e256377030d291fc2d5f4db94985ce04395 (patch)
tree993302c0cbe754612f69c22bbbc57d00220cabd4 /src/modules/ns_noop_convert.c
parent47504c9de5accda45a19627fd2b6ec13baa6ba95 (diff)
replaced the alog() command with a new type-safe and stream-based Alog()
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2777 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/ns_noop_convert.c')
-rw-r--r--src/modules/ns_noop_convert.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/ns_noop_convert.c b/src/modules/ns_noop_convert.c
index 48b4b26ad..8cc5d69e6 100644
--- a/src/modules/ns_noop_convert.c
+++ b/src/modules/ns_noop_convert.c
@@ -72,8 +72,8 @@ class NSNOOPConvert : public Module
mLoadData();
- alog("ns_noop_convert: Your auto-op database has been converted and this module will now");
- alog("ns_noop_convert: unload itself. You can now remove this module from your config");
+ Alog() << "ns_noop_convert: Your auto-op database has been converted and this module will now";
+ Alog() << "ns_noop_convert: unload itself. You can now remove this module from your config";
}
~NSNOOPConvert()
@@ -102,7 +102,7 @@ int mLoadData()
/* will _never_ be this big thanks to the 512 limit of a message */
char buffer[2000];
if ((in = fopen(NSAutoOPDBName, "r")) == NULL) {
- alog("ns_noop: WARNING: Can not open database file! (it might not exist, this is not fatal)");
+ Alog() << "ns_noop: WARNING: Can not open database file! (it might not exist, this is not fatal)";
ret = 1;
} else {
while (fgets(buffer, 1500, in)) {
@@ -138,11 +138,10 @@ int mLoadConfig(int argc, char **argv)
NSAutoOPDBName = sstrdup(tmp.c_str());
if (tmp.empty()) {
- alog("ns_noop: FATAL: Can't read required configuration directives!");
+ Alog() << "ns_noop: FATAL: Can't read required configuration directives!";
return MOD_STOP;
} else {
- alog("ns_noop: Directive NSAutoOPDBName loaded (%s)...",
- NSAutoOPDBName);
+ Alog() << "ns_noop: Directive NSAutoOPDBName loaded (" << NSAutoOPDBName << ")...";
}
return MOD_CONT;