diff options
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index bf05f45f..c69a4238 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -115,8 +115,8 @@ static void event_who(IRC_SERVER_REC *server, const char *data) /* split hops/realname */ hops = realname; while (*realname != '\0' && *realname != ' ') realname++; - while (*realname == ' ') realname++; - if (realname > hops) realname[-1] = '\0'; + if (*realname == ' ') + *realname++ = '\0'; printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_WHO, channel, nick, stat, hops, user, host, realname, serv); |