X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules.cpp;h=28eeec7c27530eda8cf5cc7212476cd0f86e0de2;hb=8e8445d1c0744130f232d3c6f56d5fe1079773ad;hp=1e744e26a23a559b6971b7619161e9b4d6f665cc;hpb=3e2ef1c9ff8affb78284d56970e2461abef5c3d3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules.cpp b/src/modules.cpp index 1e744e26a..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*) { } @@ -184,7 +182,7 @@ void Module::OnExpireLine(XLine*) { } void Module::OnCleanup(int, void*) { } int Module::OnChannelPreDelete(Channel*) { return 0; } void Module::OnChannelDelete(Channel*) { } -int Module::OnSetAway(User*, const std::string &) { } +int Module::OnSetAway(User*, const std::string &) { return 0; } int Module::OnUserList(User*, Channel*, CUList*&) { return 0; } int Module::OnWhoisLine(User*, User*, int&, std::string&) { return 0; } void Module::OnBuildExemptList(MessageType, Channel*, User*, char, CUList&, const std::string&) { } @@ -381,7 +379,7 @@ bool ModuleManager::Load(const char* filename) if (!ServerConfig::DirValid(modfile)) { - LastModuleError = "Module " + filename_str + " is not within the modules directory."; + LastModuleError = "Module " + std::string(filename) + " is not in the module directory that i am configured to look in (is "+Instance->Config->ModPath+" really a symlink?)"; Instance->Logs->Log("MODULE", DEFAULT, LastModuleError); return false; }