From 1faffbdc73467f44787d071e295b403785042276 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Thu, 1 Apr 2010 20:49:53 +0300 Subject: [PATCH] IRC: use player name as "real name" --- irc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/irc.c b/irc.c index 6dfdbe17..bec842b3 100644 --- a/irc.c +++ b/irc.c @@ -342,15 +342,15 @@ static char *IRC_NickFromPlayerName(void) static void IRC_Register(void) { + char *nick = IRC_NickFromPlayerName(); + if (!irc_nickname.string[0]) - { - char *nick = IRC_NickFromPlayerName(); Cvar_SetQuick(&irc_nickname, nick); - Z_Free(nick); - } IRC_AddMessage(va("NICK %s", irc_nickname.string)); - IRC_AddMessage(va("USER %s optional optional :%s", irc_nickname.string, irc_nickname.string)); + IRC_AddMessage(va("USER %s optional optional :%s", irc_nickname.string, nick)); + + Z_Free(nick); } static void IRC_Connect_f(void) -- 2.39.2