]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Same fixes to make this module scale much better. Dont connect on each query, keep...
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 07b491bb764c2cb9d0228d1cb13834779ca8972f..82c4e6940c330e6f8022d2c06cf763a811825c56 100644 (file)
@@ -67,7 +67,7 @@ class FounderProtectBase
                CUList* cl = channel->GetUsers();
                std::string item = extend + std::string(channel->name);
                std::vector<std::string> mode_junk;
-               mode_junk[0] = channel->name;
+               mode_junk.push_back(channel->name);
                irc::modestacker modestack(false);
                std::deque<std::string> stackresult;                            
 
@@ -89,7 +89,7 @@ class FounderProtectBase
                {
                        for (size_t j = 0; j < stackresult.size(); j++)
                        {
-                               mode_junk[j+1] = stackresult[j];
+                               mode_junk.push_back(stackresult[j]);
                        }
                        MyInstance->SendMode(mode_junk, MyInstance->FakeClient);
                }