aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp b/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp
index 208718e00..09e07acd9 100644
--- a/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp
+++ b/src/kvirc/sparser/KviIrcServerParser_numericHandlers.cpp
@@ -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))
{