summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp2
-rw-r--r--src/modules/m_chanlog.cpp12
2 files changed, 9 insertions, 5 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 4cbe8d7f6..28eeec7c2 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -106,8 +106,6 @@ std::string Event::GetEventID()
Module::Module(InspIRCd* Me) : ServerInstance(Me) { }
Module::~Module() { }
-void Module::OnReadConfig(ServerConfig*, ConfigReader*) { }
-int Module::OnDownloadFile(const std::string&, std::istream*&) { return 0; }
void Module::OnUserConnect(User*) { }
void Module::OnUserQuit(User*, const std::string&, const std::string&) { }
void Module::OnUserDisconnect(User*) { }
diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp
index eb2fe8118..4a8a41cb0 100644
--- a/src/modules/m_chanlog.cpp
+++ b/src/modules/m_chanlog.cpp
@@ -27,7 +27,9 @@ class ChannelLogStream : public LogStream
{
Channel *c = ServerInstance->FindChan(channel);
- if (loglevel < this->loglvl) return;
+printf("I got called\n");
+ if (loglevel < this->loglvl)
+ return;
if (c)
{
@@ -72,8 +74,9 @@ class ModuleChanLog : public Module
{
std::string method = Conf->ReadValue("log", "method", index);
- if (method != "file")
- continue;
+
+ //if (method != "file")
+ // continue;
std::string type = Conf->ReadValue("log", "type", index);
std::string level = Conf->ReadValue("log", "level", index);
@@ -102,6 +105,9 @@ class ModuleChanLog : public Module
}
std::string target = Conf->ReadValue("log", "target", index);
+
+printf("looking at tag with method: %s type: %s level: %s target: %s", method.c_str(), type.c_str(), level.c_str(), target.c_str());
+
ChannelLogStream* c = new ChannelLogStream(ServerInstance, loglevel, target);
ServerInstance->Logs->AddLogTypes(type, c, true);
cls.push_back(c);