]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules.h
See configreader.cpp line 764 to see how to declare deprecated items. This is reasona...
[user/henk/code/inspircd.git] / include / modules.h
index efb9113aa6b49eaf6145c365ac0b1fecaea58928..8354f34b41e432cf309a0d22aa259feba3cdee80 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
@@ -1130,7 +1126,8 @@ class CoreExport Module : public Extensible
         * return 1 to explicitly allow the join to go ahead or 0 to ignore the event.
         * @param user The user joining the channel
         * @param chan The channel being joined
-        * @return 1 to explicitly allow the join, 0 to proceed as normal
+        * @return 1 to explicitly allow the join, 0 to proceed as normal. Return -1 to explicitly deny the
+        * join to the channel.
         */
        virtual int OnCheckBan(User* user, Channel* chan);