diff options
| author | 2019-11-19 01:08:28 -0500 | |
|---|---|---|
| committer | 2019-11-27 16:46:36 +0100 | |
| commit | f0ec6c4e594951827fc785f0f43d70054507d1ec (patch) | |
| tree | 73f8ee68b03a38a6b491d7f43efa2abeb6743961 /src | |
| parent | Update KviIrcServerParser_literalHandlers.cpp (diff) | |
| download | KVIrc-f0ec6c4e594951827fc785f0f43d70054507d1ec.tar.gz KVIrc-f0ec6c4e594951827fc785f0f43d70054507d1ec.tar.bz2 KVIrc-f0ec6c4e594951827fc785f0f43d70054507d1ec.zip | |
Update KviIrcServerParser_literalHandlers.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/sparser/KviIrcServerParser_literalHandlers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kvirc/sparser/KviIrcServerParser_literalHandlers.cpp b/src/kvirc/sparser/KviIrcServerParser_literalHandlers.cpp index f0e26c4e5..4015f2852 100644 --- a/src/kvirc/sparser/KviIrcServerParser_literalHandlers.cpp +++ b/src/kvirc/sparser/KviIrcServerParser_literalHandlers.cpp @@ -874,7 +874,7 @@ void KviIrcServerParser::parseLiteralPrivmsg(KviIrcMessage * msg) PrivmsgIdentifyMsgCapState eCapState = IdentifyMsgCapNotUsed; KviCString pTrailing = msg->safeTrailingString(); - if(!strcmp(pTrailing,"")) + if(!pTrailing.isEmpty()) { if(msg->connection()->stateData()->identifyMsgCapabilityEnabled()) { @@ -1003,8 +1003,8 @@ void KviIrcServerParser::parseLiteralPrivmsg(KviIrcMessage * msg) // spam message... if(KVI_OPTION_BOOL(KviOption_boolUseAntiSpamOnPrivmsg)) { - KviCString theMsg = msg->trailingString(); - if(theMsg) + KviCString theMsg = msg->safeTrailingString(); + if(!theMsg.isEmpty()) { KviCString spamWord; if(kvi_mayBeSpam(theMsg, spamWord)) @@ -1255,7 +1255,7 @@ void KviIrcServerParser::parseLiteralNotice(KviIrcMessage * msg) // FIXME: "DEDICATED CTCP WINDOW ?" KviCString pTrailing = msg->safeTrailingString(); - if(!strcmp(pTrailing,"")) + if(!pTrailing.isEmpty()) { if(*(pTrailing.ptr()) == 0x01) { @@ -1446,8 +1446,8 @@ void KviIrcServerParser::parseLiteralNotice(KviIrcMessage * msg) // spam message... if(KVI_OPTION_BOOL(KviOption_boolUseAntiSpamOnNotice)) { - KviCString theMsg = msg->trailingString(); // FIXME - if(theMsg) + KviCString theMsg = msg->safeTrailingString(); + if(!theMsg.isEmpty()) { KviCString spamWord; if(kvi_mayBeSpam(theMsg, spamWord)) |
