diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 20:09:11 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 20:09:11 +0000 |
commit | 5a6ec7cf86958d1be9fba801e86fc90c8de45a61 (patch) | |
tree | e50b6a3e3f0f3ab7bd055f7f816124d5c0187f7c | |
parent | e84db77a2caccbaf4513bf671d9530dc73a4b725 (diff) |
Fixed +q and +a channel modes on inspircd 1.2 if they have no prefixes
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2889 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/protocol/inspircd12.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index a87367c48..72e033c38 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -1012,6 +1012,13 @@ int anope_event_capab(const char *source, int ac, const char **av) case 'I': ModeManager::AddChannelMode(new ChannelModeInvite('I')); continue; + /* InspIRCd sends q and a here if they have no prefixes */ + case 'q': + ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_OWNER, 'q', '@')); + continue; + case 'a': + ModeManager::AddChannelMode(new ChannelModeStatus(CMODE_PROTECT , 'a', '@')); + continue; // XXX list modes needs a bit of a rewrite, we need to be able to support +g here default: ModeManager::AddChannelMode(new ChannelModeList(CMODE_END, modebuf[t])); |