mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +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:
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
bool IsOnlineModNick(const CString& sNick) {
|
||||
const CString& sPrefix = GetUser()->GetStatusPrefix();
|
||||
if (!sNick.Equals(sPrefix, false, sPrefix.length()))
|
||||
if (!sNick.StartsWith(sPrefix))
|
||||
return false;
|
||||
|
||||
CString sModNick = sNick.substr(sPrefix.length());
|
||||
|
||||
Reference in New Issue
Block a user