summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/uid.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp
index f2e394c37..f962ad086 100644
--- a/src/modules/m_spanningtree/uid.cpp
+++ b/src/modules/m_spanningtree/uid.cpp
@@ -100,10 +100,12 @@ CmdResult CommandUID::Handle(const parameterlist &params, User* serversrc)
unsigned int paramptr = 9;
- // Accept more '+' chars, for now
- std::string::size_type pos = modestr.find_first_not_of('+');
- for (std::string::const_iterator v = modestr.begin()+pos; v != modestr.end(); ++v)
+ for (std::string::const_iterator v = modestr.begin(); v != modestr.end(); ++v)
{
+ // Accept more '+' chars, for now
+ if (*v == '+')
+ continue;
+
/* For each mode thats set, find the mode handler and set it on the new user */
ModeHandler* mh = ServerInstance->Modes->FindMode(*v, MODETYPE_USER);
if (!mh)