Skip to content

Commit

Permalink
Fix crash on empty realname; fix #2673 (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca authored Aug 27, 2024
1 parent 1a1db49 commit 5f64aac
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 5f64aac

Please sign in to comment.