summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGoogolplexed <googol@googolplexed.net>2014-05-15 21:46:17 +1000
committerAttila Molnar <attilamolnar@hush.com>2014-05-16 17:40:33 +0200
commitb512f1b9667ca0479d42e771082f3bc8d92c63a2 (patch)
tree3432debcf74125a7e598c84d299389ce5b0876ad /src/modules
parent3cc6f9f550aef92e7d7fee22e0589840a36bf6c4 (diff)
m_passforward: Don't forward password if the connect block required a password to connect
Diffstat (limited to 'src/modules')
-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 */