1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 03:03:13 +02:00

Bug #1215 - Fixed crash when /cs set mlock is given an empty string

This commit is contained in:
Adam
2010-12-24 20:16:42 -05:00
parent 4f6232e628
commit 0f63790b4c
+1 -1
View File
@@ -36,7 +36,7 @@ class CommandCSSetMLock : public Command
if (ModeManager::FindChannelModeByName(CMODE_REGISTERED))
ci->SetMLock(CMODE_REGISTERED, true);
Anope::string modes = params[1];
Anope::string modes = params.size() > 1 ? params[1] : "";
for (Anope::string::const_iterator ch = modes.begin(), end = modes.end(); ch != end; ++ch)
{
switch (*ch)