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

Added generic support for unknown modes told to Anope at runtime by the IRCd

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2790 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-02-12 19:51:16 +00:00
parent 2eb2cb7650
commit 84ecd1866c
5 changed files with 41 additions and 0 deletions
+10
View File
@@ -1011,6 +1011,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
case 'I':
ModeManager::AddChannelMode(new ChannelModeInvite('I'));
continue;
default:
ModeManager::AddChannelMode(new ChannelModeList(CMODE_END, modebuf[t]));
}
}
@@ -1022,6 +1024,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
case 'k':
ModeManager::AddChannelMode(new ChannelModeKey('k'));
continue;
default:
ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, modebuf[t]));
}
}
@@ -1048,6 +1052,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
case 'l':
ModeManager::AddChannelMode(new ChannelModeParam(CMODE_LIMIT, 'l', true));
continue;
default:
ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, modebuf[t], true));
}
}
@@ -1125,6 +1131,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
case 'z':
ModeManager::AddChannelMode(new ChannelMode(CMODE_SSL, 'z'));
continue;
default:
ModeManager::AddChannelMode(new ChannelMode(CMODE_END, modebuf[t]));
}
}
}
@@ -1194,6 +1202,8 @@ int anope_event_capab(const char *source, int ac, const char **av)
case 'd':
ModeManager::AddUserMode(new UserMode(UMODE_DEAF, 'd'));
continue;
default:
ModeManager::AddUserMode(new UserMode(UMODE_END, modebuf[t]));
}
}
}