summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-09 08:41:45 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-09 08:41:45 +0000
commit988e6824d56c603e002813763332816b6d35412b (patch)
treed83594681c20d50ff127a72becbdc35ebdead700 /src/modules
parent6ce70de0c185e8e753eda120ddfaf9906acd9469 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_xline_db.cpp9
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)