summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-08-11 16:27:09 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-08-11 16:27:09 -0400
commit8ca336da065487527d78599efeb9698f58a27c36 (patch)
tree034fe1bff916a4efa042fadcad783225eb119ae0 /src/modules
parent0643e7289ab302f07b7a6c2491bdae4a05934796 (diff)
Also tidy masks being removed, fixes bug #70
Diffstat (limited to 'src/modules')
-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++)
{