1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 02:26:38 +02:00

Prevent locking mode Z on unrealircd

This commit is contained in:
Adam
2011-11-15 16:22:02 -05:00
parent 9ed203c0cb
commit 1356498320
+16
View File
@@ -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]));
}