mirror of
https://github.com/znc/znc.git
synced 2026-05-01 02:52:30 +02:00
Force a space between if, for, while and (
This was done via:
sed -ir 's/if(/if (/g; s/for(/for (/g; s/while(/while (/g' \
*.h *.cpp modules/*.cpp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1030 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -32,16 +32,16 @@ public:
|
||||
virtual void OnModCommand(const CString& sCommand)
|
||||
{
|
||||
CString sCmdName = sCommand.Token(0).AsLower();
|
||||
if(sCmdName == "set") {
|
||||
if (sCmdName == "set") {
|
||||
CString sPass = sCommand.Token(1, true);
|
||||
m_sPass = sPass;
|
||||
PutModule("Password set");
|
||||
} else if(sCmdName == "show") {
|
||||
} else if (sCmdName == "show") {
|
||||
if (m_sPass.empty())
|
||||
PutModule("No password set");
|
||||
else
|
||||
PutModule("Current password: " + m_sPass);
|
||||
} else if(sCmdName == "save") {
|
||||
} else if (sCmdName == "save") {
|
||||
SetNV("Password", m_sPass);
|
||||
PutModule("Saved!");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user