]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
convert to new api
[user/henk/code/inspircd.git] / src / modules.cpp
index 8fd1e84de1059e243eda6747bed2b0c2c9f3939f..4bfa16eca1db0846ec91d4db57907617dcaa1ffd 100644 (file)
@@ -193,6 +193,7 @@ 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&) { }
 
 
 ModuleManager::ModuleManager(InspIRCd* Ins) : ModCount(0), Instance(Ins)
@@ -251,7 +252,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;