summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2013-06-18 07:48:07 +0200
committerDukePyrolator <DukePyrolator@anope.org>2013-06-18 07:48:07 +0200
commitf92b0d6ea01572a28198f47e539829b039dddae1 (patch)
tree6e060ac26dc1a6ad5021e1dd0d62fb6f89985750
parentfc527b464a45c35126028fbf48ebe6edc0744405 (diff)
added support for hybrids new umode +S (client is connected via SSL/TLS)
-rw-r--r--modules/protocol/hybrid.cpp1
-rw-r--r--modules/protocol/ratbox.cpp1
2 files changed, 2 insertions, 0 deletions
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 */