summaryrefslogtreecommitdiff
path: root/src/nickserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-21 23:20:48 -0400
committerAdam <Adam@anope.org>2010-10-21 23:20:48 -0400
commit791c2b89a5b09d3e3e3785669b29438ffec26295 (patch)
tree60a4647572e80d5f037fe2d9e49338a34cc0d6ea /src/nickserv.cpp
parent4f317a242104b623d2e5257bc672fd56c0240a0e (diff)
Changed the log:normal config directive to a list like the other log values, and fixed a potential crash from rehashing while sending mail
Diffstat (limited to 'src/nickserv.cpp')
-rw-r--r--src/nickserv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nickserv.cpp b/src/nickserv.cpp
index 54dc82b98..e21d85e45 100644
--- a/src/nickserv.cpp
+++ b/src/nickserv.cpp
@@ -263,7 +263,7 @@ void expire_nicks()
FOREACH_RESULT(I_OnPreNickExpire, OnPreNickExpire(na));
if (MOD_RESULT == EVENT_STOP)
continue;
- Log() << "Expiring nickname " << na->nick << " (group: " << na->nc->display << ") (e-mail: " << (na->nc->email.empty() ? "none" : na->nc->email) << ")";
+ Log(LOG_NORMAL, "expire") << "Expiring nickname " << na->nick << " (group: " << na->nc->display << ") (e-mail: " << (na->nc->email.empty() ? "none" : na->nc->email) << ")";
FOREACH_MOD(I_OnNickExpire, OnNickExpire(na));
delete na;
}
@@ -279,7 +279,7 @@ void expire_requests()
if (Config->NSRExpire && Anope::CurTime - nr->requested >= Config->NSRExpire)
{
- Log() << "Request for nick " << nr->nick << " expiring";
+ Log(LOG_NORMAL, "expire") << "Request for nick " << nr->nick << " expiring";
delete nr;
}
}
@@ -358,7 +358,7 @@ void change_core_display(NickCore *nc, const Anope::string &newdisplay)
{
/* Log ... */
FOREACH_MOD(I_OnChangeCoreDisplay, OnChangeCoreDisplay(nc, newdisplay));
- Log() << Config->s_NickServ << ": changing " << nc->display << " nickname group display to " << newdisplay;
+ Log(LOG_NORMAL, "nick") << Config->s_NickServ << ": changing " << nc->display << " nickname group display to " << newdisplay;
/* Remove the core from the list */
NickCoreList.erase(nc->display);