mirror of
https://github.com/znc/znc.git
synced 2026-07-01 15:31:52 +02:00
Use CString::StartsWith()
Replace the use of deprecated CString::Equals(str,bool,int) by CString::StartsWith(str,cs) which is more pleasant to read.
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
|
||||
virtual EModRet OnRaw(CString& sLine) override {
|
||||
if (sLine.Equals("ERROR ", false, 6)) {
|
||||
if (sLine.StartsWith("ERROR ")) {
|
||||
//ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
|
||||
//ERROR :Closing Link: nick[24.24.24.24] Killer (Local kill by Killer (reason))
|
||||
CString sError(sLine.substr(6));
|
||||
|
||||
Reference in New Issue
Block a user