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:
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user