summaryrefslogtreecommitdiff
path: root/modules/protocol/inspircd20.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
committerAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
commitc2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (patch)
tree9b98582630a2debab628e23d4d796885f50ada74 /modules/protocol/inspircd20.cpp
parent73fb94c55344b6ad788c925bf13325236402891f (diff)
Added a new logging system
Diffstat (limited to 'modules/protocol/inspircd20.cpp')
-rw-r--r--modules/protocol/inspircd20.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp
index 54c30d8df..1b6a582c0 100644
--- a/modules/protocol/inspircd20.cpp
+++ b/modules/protocol/inspircd20.cpp
@@ -415,7 +415,7 @@ int anope_event_fmode(const Anope::string &source, int ac, const char **av)
{
newav[o] = av[n];
++o;
- Alog(LOG_DEBUG) << "Param: " << newav[o - 1];
+ Log(LOG_DEBUG) << "Param: " << newav[o - 1];
}
++n;
}
@@ -474,7 +474,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av)
ChannelMode *cm = ModeManager::FindChannelModeByChar(buf[0]);
if (!cm)
{
- Alog() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string";
+ Log() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string";
buf.erase(buf.begin());
continue;
}
@@ -488,7 +488,7 @@ int anope_event_fjoin(const Anope::string &source, int ac, const char **av)
User *u = finduser(buf);
if (!u)
{
- Alog(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name;
+ Log(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name;
continue;
}
@@ -573,7 +573,7 @@ int anope_event_topic(const Anope::string &source, int ac, const char **av)
if (!c)
{
- Alog(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0];
+ Log(LOG_DEBUG) << "debug: TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0];
return MOD_CONT;
}
@@ -658,7 +658,7 @@ int anope_event_setname(const Anope::string &source, int ac, const char **av)
u = finduser(source);
if (!u)
{
- Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source;
+ Log(LOG_DEBUG) << "SETNAME for nonexistent user " << source;
return MOD_CONT;
}
@@ -673,7 +673,7 @@ int anope_event_chgname(const Anope::string &source, int ac, const char **av)
u = finduser(source);
if (!u)
{
- Alog(LOG_DEBUG) << "FNAME for nonexistent user " << source;
+ Log(LOG_DEBUG) << "FNAME for nonexistent user " << source;
return MOD_CONT;
}
@@ -688,7 +688,7 @@ int anope_event_setident(const Anope::string &source, int ac, const char **av)
u = finduser(source);
if (!u)
{
- Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source;
+ Log(LOG_DEBUG) << "SETIDENT for nonexistent user " << source;
return MOD_CONT;
}
@@ -702,7 +702,7 @@ int anope_event_chgident(const Anope::string &source, int ac, const char **av)
if (!u)
{
- Alog(LOG_DEBUG) << "FIDENT for nonexistent user " << source;
+ Log(LOG_DEBUG) << "FIDENT for nonexistent user " << source;
return MOD_CONT;
}
@@ -717,7 +717,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av)
u = finduser(source);
if (!u)
{
- Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source;
+ Log(LOG_DEBUG) << "SETHOST for nonexistent user " << source;
return MOD_CONT;
}
@@ -788,7 +788,7 @@ int anope_event_chghost(const Anope::string &source, int ac, const char **av)
u = finduser(source);
if (!u)
{
- Alog(LOG_DEBUG) << "FHOST for nonexistent user " << source;
+ Log(LOG_DEBUG) << "FHOST for nonexistent user " << source;
return MOD_CONT;
}
@@ -974,7 +974,7 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av)
if (cm)
ModeManager::AddChannelMode(cm);
else
- Alog() << "Unrecognized mode string in CAPAB CHANMODES: " << capab;
+ Log() << "Unrecognized mode string in CAPAB CHANMODES: " << capab;
}
}
else if (!strcasecmp(av[0], "USERMODES"))
@@ -1030,7 +1030,7 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av)
if (um)
ModeManager::AddUserMode(um);
else
- Alog() << "Unrecognized mode string in CAPAB USERMODES: " << capab;
+ Log() << "Unrecognized mode string in CAPAB USERMODES: " << capab;
}
}
else if (!strcasecmp(av[0], "MODULES"))
@@ -1179,7 +1179,7 @@ int anope_event_endburst(const Anope::string &source, int ac, const char **av)
u->RemoveMode(NickServ, UMODE_REGISTERED);
}
- Alog() << "Processed ENDBURST for " << s->GetName();
+ Log(LOG_DEBUG) << "Processed ENDBURST for " << s->GetName();
s->Sync(true);
return MOD_CONT;