Skip to content

Commit

Permalink
Fix crash on empty realname; fix #2673
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Aug 26, 2024
1 parent cf5a03a commit 80cf0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 80cf0de

Please sign in to comment.