mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Use CString::Equals() everywhere.
* (CString::CaseCmp() == 0) became CString::Equals() * (CString::CaseCmp() != 0) became !CString::Equals() * replaced some occurrences of strn?casecmp git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1234 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
||||
virtual void OnModCommand(const CString& sLine) {
|
||||
CString sCommand = sLine.Token(0);
|
||||
|
||||
if (sCommand.CaseCmp("ADD") == 0) {
|
||||
if (sCommand.Equals("ADD")) {
|
||||
CString sChan = sLine.Token(1);
|
||||
|
||||
if (AlreadyAdded(sChan)) {
|
||||
@@ -68,14 +68,14 @@ public:
|
||||
} else {
|
||||
PutModule("Usage: Add [!]<#chan>");
|
||||
}
|
||||
} else if (sCommand.CaseCmp("DEL") == 0) {
|
||||
} else if (sCommand.Equals("DEL")) {
|
||||
CString sChan = sLine.Token(1);
|
||||
|
||||
if (Del(sChan))
|
||||
PutModule("Removed " + sChan + " from list");
|
||||
else
|
||||
PutModule("Usage: Del [!]<#chan>");
|
||||
} else if (sCommand.CaseCmp("LIST") == 0) {
|
||||
} else if (sCommand.Equals("LIST")) {
|
||||
CTable Table;
|
||||
Table.AddColumn("Chan");
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
} else {
|
||||
PutModule("You have no entries.");
|
||||
}
|
||||
} else if (sCommand.CaseCmp("HELP") == 0) {
|
||||
} else if (sCommand.Equals("HELP")) {
|
||||
CTable Table;
|
||||
Table.AddColumn("Command");
|
||||
Table.AddColumn("Description");
|
||||
|
||||
Reference in New Issue
Block a user