From 5a6ec7cf86958d1be9fba801e86fc90c8de45a61 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 11 Apr 2010 20:09:11 +0000 Subject: 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 --- src/protocol/inspircd12.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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])); -- cgit