From f92b0d6ea01572a28198f47e539829b039dddae1 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Tue, 18 Jun 2013 07:48:07 +0200 Subject: [PATCH] added support for hybrids new umode +S (client is connected via SSL/TLS) --- modules/protocol/hybrid.cpp | 1 + modules/protocol/ratbox.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index ecdaff456..f10f0a26b 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -566,6 +566,7 @@ class ProtoHybrid : public Module ModeManager::AddUserMode(new UserMode("DEAF", 'D')); ModeManager::AddUserMode(new UserMode("HIDEOPER", 'H')); ModeManager::AddUserMode(new UserMode("REGPRIV", 'R')); + ModeManager::AddUserMode(new UserMode("SSL", 'S')); /* b/e/I */ ModeManager::AddChannelMode(new ChannelModeList("BAN", 'b')); diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index fe4caabdf..007dfc674 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -213,6 +213,7 @@ class ProtoRatbox : public Module /* user modes */ ModeManager::RemoveUserMode(ModeManager::FindUserModeByName("HIDEOPER")); ModeManager::RemoveUserMode(ModeManager::FindUserModeByName("REGPRIV")); + Modemanager::RemoveUserMode(ModeManager::FindUserModeByName("SSL")); ModeManager::AddUserMode(new UserMode("PROTECTED", 'S')); /* v/h/o/a/q */