summaryrefslogtreecommitdiff
path: root/modules/commands/ns_ajoin.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-08-01 19:23:48 +0100
committerSadie Powell <sadie@witchery.services>2021-08-01 19:23:48 +0100
commite7e8447fa39ced57743eab51e8e2835ddddd7001 (patch)
tree2bc8d31f575616e612c0d7e3898bd94bd9165b18 /modules/commands/ns_ajoin.cpp
parent561b205c4a3a125c12a7926ef18fa1eb822c387c (diff)
Deduplicate code for checking if a user is securely connected.
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r--modules/commands/ns_ajoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp
index 4f4c75e1a..f2ea92c56 100644
--- a/modules/commands/ns_ajoin.cpp
+++ b/modules/commands/ns_ajoin.cpp
@@ -356,7 +356,7 @@ class NSAJoin : public Module
continue;
else if (c->HasMode("ADMINONLY") && !u->HasMode("ADMIN"))
continue;
- else if (c->HasMode("SSL") && !(u->HasMode("SSL") || u->HasExt("ssl")))
+ else if (c->HasMode("SSL") && !u->IsSecurelyConnected())
continue;
else if (c->MatchesList(u, "BAN") == true && c->MatchesList(u, "EXCEPT") == false)
need_invite = true;