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

Fix CommandCSMode::CanSet letting everyone set voice

This commit is contained in:
Adam
2013-02-13 19:28:45 -05:00
parent 9e544a6443
commit 5cf1edeb6e
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -454,7 +454,7 @@ struct IRCDMessageCapab : Message::Capab
{
Anope::string modes(capab.begin() + 8, capab.begin() + capab.find(')'));
Anope::string chars(capab.begin() + capab.find(')') + 1, capab.end());
unsigned short level = modes.length() - 1;
short level = modes.length() - 1;
for (size_t t = 0, end = modes.length(); t < end; ++t)
{
@@ -466,7 +466,7 @@ struct IRCDMessageCapab : Message::Capab
}
ChannelModeStatus *cms = anope_dynamic_static_cast<ChannelModeStatus *>(cm);
cms->Level = level--;
cms->level = level--;
}
}
}