X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules.cpp;h=5ec74da7b9bc43f5db57cd7ac6ef82cce36a4fe8;hb=af789aefbbdfa76ebe1a5e3929589213c15aaa44;hp=8fd1e84de1059e243eda6747bed2b0c2c9f3939f;hpb=9ce18436e94c2cdebeba90eba30b3c3e1ca311ed;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules.cpp b/src/modules.cpp index 8fd1e84de..5ec74da7b 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -193,7 +193,9 @@ void Module::OnGarbageCollect() { } void Module::OnBufferFlushed(User*) { } void Module::OnText(User*, void*, int, const std::string&, char, CUList&) { } void Module::OnRunTestSuite() { } - +void Module::OnNamesListItem(User*, User*, Channel*, std::string&, std::string&) { } +int Module::OnNumeric(User*, unsigned int, const std::string&) { return 0; } +void Module::OnHookUserIO(User*, const std::string&) { } ModuleManager::ModuleManager(InspIRCd* Ins) : ModCount(0), Instance(Ins) { @@ -251,7 +253,7 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s, * on which they want, and we make sure our module is *at least* before or after * the first or last of this subset, depending again on the type of priority. */ - size_t swap_pos; + size_t swap_pos = 0; size_t source = 0; bool swap = true; bool found = false;