]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove two useless methods, chanlog is b0rked at the moment.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 Apr 2008 15:06:24 +0000 (15:06 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 4 Apr 2008 15:06:24 +0000 (15:06 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9313 e03df62e-2008-0410-955e-edbf42e46eb7

include/modules.h
src/modules.cpp
src/modules/m_chanlog.cpp

index efb9113aa6b49eaf6145c365ac0b1fecaea58928..abc783ca9e5e7e1dd6ffd0701e6d0414bb5a95c5 100644 (file)
@@ -397,7 +397,7 @@ enum Implementation
        I_OnRawSocketAccept, I_OnRawSocketClose, I_OnRawSocketWrite, I_OnRawSocketRead, I_OnChangeLocalUserGECOS, I_OnUserRegister,
        I_OnChannelPreDelete, I_OnChannelDelete, I_OnPostOper, I_OnSyncOtherMetaData, I_OnSetAway, I_OnUserList,
        I_OnPostCommand, I_OnPostJoin, I_OnWhoisLine, I_OnBuildExemptList, I_OnRawSocketConnect, I_OnGarbageCollect, I_OnBufferFlushed,
-       I_OnText, I_OnReadConfig, I_OnDownloadFile, I_OnPassCompare, I_OnRunTestSuite, I_OnNamesListItem, I_OnNumeric, I_OnHookUserIO,
+       I_OnText, I_OnPassCompare, I_OnRunTestSuite, I_OnNamesListItem, I_OnNumeric, I_OnHookUserIO,
        I_END
 };
 
@@ -432,10 +432,6 @@ class CoreExport Module : public Extensible
        {
        }
 
-       virtual void OnReadConfig(ServerConfig* config, ConfigReader* coreconf);
-
-       virtual int OnDownloadFile(const std::string &filename, std::istream* &filedata);
-
        /** Returns the version number of a Module.
         * The method should return a Version object with its version information assigned via
         * Version::Version
index 4cbe8d7f6df7cbc7c57c3eaaa1571524e0acacf6..28eeec7c27530eda8cf5cc7212476cd0f86e0de2 100644 (file)
@@ -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*) { }
index eb2fe8118863a312e64cb3ff1e042474f6e9ee24..4a8a41cb0c2489f4b9a3ac52289f590748073a3b 100644 (file)
@@ -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);