summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-21 10:14:38 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-21 10:14:38 +0000
commitfbdf2528765323ba8c84e547a95b1dcbafd07239 (patch)
tree138f9e8a8936856dd621dc9459cb9c6744fa6a8d /src
parent3668ba15437a2b2c3685ff86538829185883ef1c (diff)
BUILD : 1.7.6 (495) BUGS : N/A NOTES : Moved global regarding the deletion of non-existing session toinside the if(debug) as anope will call that function when users ping out etc
git-svn-id: svn://svn.anope.org/anope/trunk@495 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@349 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/sessions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sessions.c b/src/sessions.c
index f2726ba10..73bee9ad3 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -286,10 +286,10 @@ void del_session(const char *host)
session = findsession(host);
if (!session) {
- anope_cmd_global(s_OperServ,
- "WARNING: Tried to delete non-existant session: \2%s",
- host);
if (debug) {
+ anope_cmd_global(s_OperServ,
+ "WARNING: Tried to delete non-existant session: \2%s",
+ host);
alog("session: Tried to delete non-existant session: %s",
host);
}