Skip to content

Commit

Permalink
Fix crash bug on avatar handling with specific realnames (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca authored Dec 8, 2023
1 parent 30fc859 commit ee64215
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 @@ -1082,7 +1082,7 @@ void KviIrcServerParser::parseNumericWhospcrpl(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 ee64215

Please sign in to comment.