From 133c8fcb8aa6e064f39d58000f7fa4b1568e9f28 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 14 Oct 2008 17:28:10 +0000 Subject: [PATCH] nickserv: Auto-save passwords when they are set and remove the 'show' command Passwords should be secret, so don't display them to everyone who asks. The auto-save is there to make owine happy. ;) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1250 726aef4b-f618-498e-8847-2d620e286838 --- modules/nickserv.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/nickserv.cpp b/modules/nickserv.cpp index 1f011028..eb8134d6 100644 --- a/modules/nickserv.cpp +++ b/modules/nickserv.cpp @@ -35,17 +35,10 @@ public: if (sCmdName == "set") { CString sPass = sCommand.Token(1, true); m_sPass = sPass; - PutModule("Password set"); - } else if (sCmdName == "show") { - if (m_sPass.empty()) - PutModule("No password set"); - else - PutModule("Current password: " + m_sPass); - } else if (sCmdName == "save") { SetNV("Password", m_sPass); - PutModule("Saved!"); + PutModule("Password set"); } else { - PutModule("Commands: set , show, save"); + PutModule("Commands: set "); } }