]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/helperfuncs.cpp
This fixes a deletion error here, we were using new[] and not using delete[], but...
[user/henk/code/inspircd.git] / src / helperfuncs.cpp
index 1defef04711d9a38f8c8c3c8f218c1c3463b8eb4..1cad143c510c207479f56a3ab631f9cb8d73c39f 100644 (file)
@@ -114,7 +114,7 @@ void InspIRCd::WriteOpers(const char* text, ...)
 
 void InspIRCd::WriteOpers(const std::string &text)
 {
-       for (std::vector<userrec*>::iterator i = this->all_opers.begin(); i != this->all_opers.end(); i++)
+       for (std::list<userrec*>::iterator i = this->all_opers.begin(); i != this->all_opers.end(); i++)
        {
                userrec* a = *i;
                if (IS_LOCAL(a) && a->IsModeSet('s'))