summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-11-15 16:22:02 -0500
committerAdam <Adam@anope.org>2011-11-15 16:22:02 -0500
commit1356498320c30ff3cf04f4ece616f07f6fe4ce69 (patch)
tree243e286efe61f9d209a3f7be646296d518fd4414
parent9ed203c0cb137997241e3094a9430ef593d2b1f0 (diff)
Prevent locking mode Z on unrealircd
-rw-r--r--modules/protocol/unreal.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index bb23ade2a..51b248278 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -465,6 +465,19 @@ class ChannelModeFlood : public ChannelModeParam
}
};
+class ChannelModeUnrealSSL : public ChannelMode
+{
+ public:
+ ChannelModeUnrealSSL(ChannelModeName n, char c) : ChannelMode(n, c)
+ {
+ }
+
+ bool CanSet(User *u) const
+ {
+ return false;
+ }
+};
+
class Unreal32IRCdMessage : public IRCdMessage
{
public:
@@ -757,6 +770,9 @@ class Unreal32IRCdMessage : public IRCdMessage
case 'G':
ModeManager::AddChannelMode(new ChannelMode(CMODE_FILTER, 'G'));
continue;
+ case 'Z':
+ ModeManager::AddChannelMode(new ChannelModeUnrealSSL(CMODE_END, 'Z'));
+ continue;
default:
ModeManager::AddChannelMode(new ChannelMode(CMODE_END, modebuf[t]));
}