From 80724ce64c8a34491fcc49a7fc61b4ab78df174c Mon Sep 17 00:00:00 2001 From: cflakes Date: Thu, 15 Apr 2010 11:20:16 +0000 Subject: [PATCH] Do not keep nickserv passwords lingering around as module arguments. Instead, save them as NV. This also prevents them from showing up in webadmin. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1914 726aef4b-f618-498e-8847-2d620e286838 --- modules/nickserv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/nickserv.cpp b/modules/nickserv.cpp index e8c69eb1..4bc86d2f 100644 --- a/modules/nickserv.cpp +++ b/modules/nickserv.cpp @@ -23,8 +23,11 @@ public: { if (sArgs.empty()) m_sPass = GetNV("Password"); - else + else { m_sPass = sArgs; + SetNV("Password", m_sPass); + SetArgs(""); + } return true; }