]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Use !empty() instead of 'size() > 0' when checking parameter count.
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index 92c0b0bd0d36b1a2f01e042d8af254aa734c8d6b..3e378a74c3e0b2a04d8218737433fc1047e971cb 100644 (file)
@@ -230,7 +230,7 @@ class ModuleShun : public Module, public Stats::EventListener
                else if ((command == "PART") && (parameters.size() > 1))
                {
                        /* same for PART */
-                       parameters[1].clear();
+                       parameters.pop_back();
                }
 
                /* if we're here, allow the command. */