From 80cf0de0615d22b9909c9a821f1eb726c2ed585e Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 26 Aug 2024 12:12:59 +0200 Subject: [PATCH] Fix crash on empty realname; fix #2673 --- src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp b/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp index e485a2012..bce3c9cfb 100644 --- a/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp +++ b/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp @@ -943,7 +943,7 @@ void KviIrcServerParser::parseNumericWhoReply(KviIrcMessage * msg) msg->console()->checkDefaultAvatar(e, szNick, szUser, szHost); } //still no avatar? check if the user is exposing the fact that he's got one - if(!e->avatar()) + if(!e->avatar() && szReal.size() > 2) { if((szReal[0].unicode() == KviControlCodes::Color) && (szReal[1].unicode() & 4) && (szReal[2].unicode() == KviControlCodes::Reset)) {