]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_dccallow.cpp
Merge branch 'master+listmode'
[user/henk/code/inspircd.git] / src / modules / m_dccallow.cpp
index cc7fbd323020b50757b466de89d11a66526324da..1b838be5ce3fc62fbafbeef3964aa74944e77eb6 100644 (file)
@@ -268,11 +268,7 @@ class ModuleDCCAllow : public Module
 
                // remove their DCCALLOW list if they have one
                if (udl)
-               {
-                       userlist::iterator it = std::find(ul.begin(), ul.end(), user);
-                       if (it != ul.end())
-                               ul.erase(it);
-               }
+                       stdalgo::erase(ul, user);
 
                // remove them from any DCCALLOW lists
                // they are currently on