mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
Moved CUtils::wildcmp() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@251 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -59,7 +59,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
|
||||
if (strncasecmp(sLine.c_str(), "PING ", 5) == 0) {
|
||||
PutServ("PONG " + sLine.substr(5));
|
||||
} else if (CUtils::wildcmp(":* * *", sLine.c_str())) { //"^:(\\S+) (\\d\\d\\d) (.*?) (.*)$", vCap)) {
|
||||
} else if (sLine.WildCmp(":* * *")) { //"^:(\\S+) (\\d\\d\\d) (.*?) (.*)$", vCap)) {
|
||||
CString sCmd = sLine.Token(1);
|
||||
|
||||
if ((sCmd.length() == 3) && (isdigit(sCmd[0])) && (isdigit(sCmd[1])) && (isdigit(sCmd[2]))) {
|
||||
@@ -503,7 +503,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
CString sMsg = sRest.Token(1, true);
|
||||
sMsg.LeftChomp();
|
||||
|
||||
if (CUtils::wildcmp("\001*\001", sMsg.c_str())) {
|
||||
if (sMsg.WildCmp("\001*\001")) {
|
||||
sMsg.LeftChomp();
|
||||
sMsg.RightChomp();
|
||||
|
||||
@@ -552,7 +552,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
sMsg.LeftChomp();
|
||||
}
|
||||
|
||||
if (CUtils::wildcmp("\001*\001", sMsg.c_str())) {
|
||||
if (sMsg.WildCmp("\001*\001")) {
|
||||
sMsg.LeftChomp();
|
||||
sMsg.RightChomp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user