summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_passforward.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_passforward.cpp b/src/modules/m_passforward.cpp
index b5696c8f4..7cf49fd04 100644
--- a/src/modules/m_passforward.cpp
+++ b/src/modules/m_passforward.cpp
@@ -78,6 +78,10 @@ class ModulePassForward : public Module
if (!user || user->password.empty())
return;
+ // If the connect class requires a password, don't forward it
+ if (!user->MyClass->config->getString("password").empty())
+ return;
+
if (!nickrequired.empty())
{
/* Check if nick exists and its server is ulined */