|
|
|
@ -10,6 +10,11 @@ |
|
|
|
|
#include "ICommandPriv.h" |
|
|
|
|
#include <algorithm> |
|
|
|
|
|
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) |
|
|
|
|
#define QT_SPLIT_SKIP_EMPTY_PARTS QString::SkipEmptyParts |
|
|
|
|
#else |
|
|
|
|
#define QT_SPLIT_SKIP_EMPTY_PARTS Qt::SkipEmptyParts |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
ICommand::ICommand(IRC& connection_) |
|
|
|
|
: mp(new ICommandPriv(*this, connection_, connection_.getStatus())) |
|
|
|
@ -519,7 +524,7 @@ bool ICommand::tryParseInternal(QString cmdLine) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else if (command == MUTERESP) { |
|
|
|
|
QStringList list = cmdLine.split(' ', Qt::SkipEmptyParts); |
|
|
|
|
QStringList list = cmdLine.split(' ', QT_SPLIT_SKIP_EMPTY_PARTS); |
|
|
|
|
if (list.isEmpty()) { |
|
|
|
|
print_notEnoughParameters(command); |
|
|
|
|
return true; |
|
|
|
@ -529,7 +534,7 @@ bool ICommand::tryParseInternal(QString cmdLine) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else if (command == UNMUTERESP) { |
|
|
|
|
QStringList list = cmdLine.split(' ', Qt::SkipEmptyParts); |
|
|
|
|
QStringList list = cmdLine.split(' ', QT_SPLIT_SKIP_EMPTY_PARTS); |
|
|
|
|
if (list.isEmpty()) { |
|
|
|
|
print_notEnoughParameters(command); |
|
|
|
|
return true; |
|
|
|
|