Nickserv: Add a clear command

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1554 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-07-01 09:06:29 +00:00
parent 76b40e35f2
commit d3b95a0b3d
+4 -1
View File
@@ -37,8 +37,11 @@ public:
m_sPass = sPass;
SetNV("Password", m_sPass);
PutModule("Password set");
} else if (xCmdName == "clear") {
m_sPass = "";
DelNV("Password");
} else {
PutModule("Commands: set <password>");
PutModule("Commands: set <password>, clear");
}
}