From b512f1b9667ca0479d42e771082f3bc8d92c63a2 Mon Sep 17 00:00:00 2001 From: Googolplexed Date: Thu, 15 May 2014 21:46:17 +1000 Subject: m_passforward: Don't forward password if the connect block required a password to connect --- src/modules/m_passforward.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') 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 */ -- cgit v1.2.3