summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/u_listmode.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index b733d7536..8315dbcd1 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -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;
}