diff options
-rw-r--r-- | src/modules/m_xline_db.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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<XLine *>::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<XLine *>::iterator i = xlines.begin(); i != xlines.end(); i++) { if ((*i) == line) |