From 5e568a30f2d7e4eaefd204ea0626226c481d9ec3 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 18 May 2013 14:23:49 +0400 Subject: [PATCH] nickserv: don't confuse people so much Password is hidden from arguments, because it's bad to show it right here. But it looked like it refused to save the pass. --- modules/nickserv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nickserv.cpp b/modules/nickserv.cpp index 682fef6c..55ec4cb3 100644 --- a/modules/nickserv.cpp +++ b/modules/nickserv.cpp @@ -122,9 +122,9 @@ public: virtual ~CNickServ() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { - if (!sArgs.empty()) { + if (!sArgs.empty() && sArgs != "") { SetNV("Password", sArgs); - SetArgs(""); + SetArgs(""); } if (GetNV("IdentifyCmd").empty()) {