]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
m_dccallow Add config option to control max entries on a list
[user/henk/code/inspircd.git] / src / channels.cpp
index 9eee987f1e80629f2b3de670881f8cc731e95b7f..9f1eafd0cb1f1e9654a8d3890310a46ac98af26a 100644 (file)
@@ -202,7 +202,12 @@ void Channel::SetDefaultModes()
                if (mode)
                {
                        if (mode->GetNumParams(true))
+                       {
                                list.GetToken(parameter);
+                               // If the parameter begins with a ':' then it's invalid
+                               if (parameter.c_str()[0] == ':')
+                                       continue;
+                       }
                        else
                                parameter.clear();