summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/u_listmode.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/u_listmode.h b/src/modules/u_listmode.h
index 62093fdd4..a79828403 100644
--- a/src/modules/u_listmode.h
+++ b/src/modules/u_listmode.h
@@ -222,6 +222,9 @@ class ListModeBase : public ModeHandler
// Try and grab the list
modelist* el = extItem.get(channel);
+ if (this->tidy)
+ ModeParser::CleanMask(parameter);
+
if (adding)
{
// If there was no list
@@ -232,10 +235,6 @@ class ListModeBase : public ModeHandler
extItem.set(channel, el);
}
- // Clean the mask up
- if (this->tidy)
- ModeParser::CleanMask(parameter);
-
// Check if the item already exists in the list
for (modelist::iterator it = el->begin(); it != el->end(); it++)
{