]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/u_listmode.h
Add more features to modestacker so that we can stack +, -, and parameterless modes
[user/henk/code/inspircd.git] / include / u_listmode.h
index b733d75362ae142821fcd49ee5a8ca8cf9d065b1..8315dbcd1e7e795bc38b5ade6544edc916aeca50 100644 (file)
@@ -258,18 +258,16 @@ class ListModeBase : public ModeHandler
                                                }
                                                return MODEACTION_ALLOW;
                                        }
-                                       else
-                                       {
-                                               /* Tried to remove something that wasn't set */
-                                               TellNotSet(source, channel, parameter);
-                                       }
                                }
+                               /* Tried to remove something that wasn't set */
+                               TellNotSet(source, channel, parameter);
                                parameter = "";
                                return MODEACTION_DENY;
                        }
                        else
                        {
-                               // Hmm, taking an exception off a non-existant list, DIE
+                               /* Hmm, taking an exception off a non-existant list, DIE */
+                               TellNotSet(source, channel, parameter);
                                parameter = "";
                                return MODEACTION_DENY;
                        }