diff options
author | Adam <Adam@anope.org> | 2011-02-22 20:30:45 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-22 20:30:45 -0500 |
commit | b15410fd3acb47fb305383c74ad0f03add6e38e0 (patch) | |
tree | 149c3d8846c9b08cf93358e579c080c24f8b5dee /modules/protocol/inspircd11.cpp | |
parent | c83b2b73d7c5f264dedb67b878d116b5b10a4742 (diff) |
Store modes in the databases told to us during runtime that we don't have information any about. Allows mlocking things like InspIRCds +w etc. Also fixes part of #1235
Diffstat (limited to 'modules/protocol/inspircd11.cpp')
-rw-r--r-- | modules/protocol/inspircd11.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index 84764d2fa..96867071c 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -404,7 +404,7 @@ class InspircdIRCdMessage : public IRCdMessage ModeManager::AddChannelMode(new ChannelModeInvex('I')); continue; default: - ModeManager::AddChannelMode(new ChannelModeList(CMODE_END, "", modebuf[t])); + ModeManager::AddChannelMode(new ChannelModeList(CMODE_END, modebuf[t], modebuf[t])); } } @@ -417,7 +417,7 @@ class InspircdIRCdMessage : public IRCdMessage ModeManager::AddChannelMode(new ChannelModeKey('k')); continue; default: - ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, "", modebuf[t])); + ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, modebuf[t], modebuf[t])); } } @@ -436,7 +436,7 @@ class InspircdIRCdMessage : public IRCdMessage ModeManager::AddChannelMode(new ChannelModeParam(CMODE_REDIRECT, "CMODE_REDIRECT", 'L', true)); continue; default: - ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, "", modebuf[t], true)); + ModeManager::AddChannelMode(new ChannelModeParam(CMODE_END, modebuf[t], modebuf[t], true)); } } @@ -506,7 +506,7 @@ class InspircdIRCdMessage : public IRCdMessage ModeManager::AddChannelMode(new ChannelMode(CMODE_NOINVITE, "CMODE_NOINVITE", 'V')); continue; default: - ModeManager::AddChannelMode(new ChannelMode(CMODE_END, "", modebuf[t])); + ModeManager::AddChannelMode(new ChannelMode(CMODE_END, modebuf[t], modebuf[t])); } } } |