Permalink
Browse files

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.
  • Loading branch information...
DarthGandalf committed May 18, 2013
1 parent f96ea81 commit 5e568a30f2d7e4eaefd204ea0626226c481d9ec3
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/nickserv.cpp
View
@@ -122,9 +122,9 @@ class CNickServ : public CModule {
virtual ~CNickServ() {}
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
- if (!sArgs.empty()) {
+ if (!sArgs.empty() && sArgs != "<hidden>") {
SetNV("Password", sArgs);
- SetArgs("");
+ SetArgs("<hidden>");
}
if (GetNV("IdentifyCmd").empty()) {

0 comments on commit 5e568a3

Please sign in to comment.