mirror of
https://github.com/znc/znc.git
synced 2026-05-01 11:02:27 +02:00
Moved CUtils::Token() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@244 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -116,9 +116,9 @@ public:
|
||||
}
|
||||
|
||||
PutShell("znc$");
|
||||
} else if (strcasecmp(CUtils::Token(sCommand, 0).c_str(), "SEND") == 0) {
|
||||
CString sToNick = CUtils::Token(sCommand, 1);
|
||||
CString sFile = CUtils::Token(sCommand, 2);
|
||||
} else if (strcasecmp(sCommand.Token(0).c_str(), "SEND") == 0) {
|
||||
CString sToNick = sCommand.Token(1);
|
||||
CString sFile = sCommand.Token(2);
|
||||
|
||||
if ((sToNick.empty()) || (sFile.empty())) {
|
||||
PutShell("usage: Send <nick> <file>");
|
||||
@@ -133,8 +133,8 @@ public:
|
||||
m_pUser->SendFile(sToNick, sFile, GetModName());
|
||||
}
|
||||
}
|
||||
} else if (strcasecmp(CUtils::Token(sCommand, 0).c_str(), "GET") == 0) {
|
||||
CString sFile = CUtils::Token(sCommand, 1);
|
||||
} else if (strcasecmp(sCommand.Token(0).c_str(), "GET") == 0) {
|
||||
CString sFile = sCommand.Token(1);
|
||||
|
||||
if (sFile.empty()) {
|
||||
PutShell("usage: Get <file>");
|
||||
|
||||
Reference in New Issue
Block a user