]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banredirect.cpp
Check for windows drive letters on the start of paths and treat them the same as...
[user/henk/code/inspircd.git] / src / modules / m_banredirect.cpp
index 4313039aabe13d99badc3be4f7b84fc4dea4c74d..e9661c727cd0697148e8cae2ec76f13aecabc78e 100644 (file)
@@ -223,8 +223,7 @@ class ModuleBanRedirect : public Module
                                irc::modestacker modestack(false);
                                StringDeque stackresult;
                                std::vector<std::string> mode_junk;
-                               
-                               mode_junk[0] = chan->name;
+                               mode_junk.push_back(chan->name);
                                
                                for(BanRedirectList::iterator i = redirects->begin(); i != redirects->end(); i++)
                                {
@@ -241,7 +240,7 @@ class ModuleBanRedirect : public Module
                                {
                                        for(StringDeque::size_type i = 0; i < stackresult.size(); i++)
                                        {
-                                               mode_junk[i+1] = stackresult[i];
+                                               mode_junk.push_back(stackresult[i]);
                                        }
                                        
                                        ServerInstance->SendMode(mode_junk, ServerInstance->FakeClient);