1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 07:23:12 +02:00

Fixed a typo in inspircd20.cpp that could cause not adding some modes

This commit is contained in:
Adam
2010-07-25 03:39:49 -04:00
parent 0af849cc05
commit cbe7885f68
+5 -1
View File
@@ -1201,7 +1201,7 @@ int anope_event_capab(const char *source, int ac, const char **av)
sep.GetToken(modebuf);
for (size_t t = 0; t < modebuf.size(); ++t)
{
if (ModeManager::FindChannelModeByChar(modebuf[t]));
if (ModeManager::FindChannelModeByChar(modebuf[t]))
continue;
ModeManager::AddChannelMode(new ChannelMode(CMODE_END, modebuf[t]));
}
@@ -1219,6 +1219,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
{
for (size_t t = 0; t < modebuf.size(); ++t)
{
if (ModeManager::FindUserModeByChar(modebuf[t]))
continue;
ModeManager::AddUserMode(new UserModeParam(UMODE_END, modebuf[t]));
}
}
@@ -1227,6 +1229,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
{
for (size_t t = 0; t < modebuf.size(); ++t)
{
if (ModeManager::FindUserModeByChar(modebuf[t]))
continue;
ModeManager::AddUserMode(new UserMode(UMODE_END, modebuf[t]));
}
}