From 988e6824d56c603e002813763332816b6d35412b Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 9 Jan 2008 08:41:45 +0000 Subject: Remove useless debug from here (finished with it), and add some debug that makes sense :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8673 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_xline_db.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp index e52caed17..aff5bb16e 100644 --- a/src/modules/m_xline_db.cpp +++ b/src/modules/m_xline_db.cpp @@ -43,15 +43,9 @@ class ModuleXLineDB : public Module */ void OnAddLine(User* source, XLine* line) { + ServerInstance->Log(DEBUG, "xlinedb: Adding a line"); xlines.push_back(line); - for (std::vector::iterator i = xlines.begin(); i != xlines.end(); i++) - { - line = (*i); - ServerInstance->WriteOpers("%s %s %s %lu %lu :%s", line->type.c_str(), line->Displayable(), -ServerInstance->Config->ServerName, line->set_time, line->duration, line->reason); - } - if (!reading_db) { WriteDatabase(); @@ -65,6 +59,7 @@ ServerInstance->Config->ServerName, line->set_time, line->duration, line->reason */ void OnDelLine(User* source, XLine* line) { + ServerInstance->Log(DEBUG, "xlinedb: Removing a line"); for (std::vector::iterator i = xlines.begin(); i != xlines.end(); i++) { if ((*i) == line) -- cgit v1.2.3