fixed fullname handling in login

This commit is contained in:
arg@10ksloc.org 2006-07-21 15:46:05 +02:00
parent 6255ad68d6
commit 9d87b90d50

4
sic.c
View File

@ -294,10 +294,10 @@ main(int argc, char *argv[])
if(password)
snprintf(bufout, sizeof(bufout),
"PASS %s\r\nNICK %s\r\nUSER %s localhost %s :%s\r\n",
password, nick, nick, server, fullname ? fullname : nick);
password, nick, nick, server, fullname);
else
snprintf(bufout, sizeof(bufout), "NICK %s\r\nUSER %s localhost %s :%s\r\n",
nick, nick, server, fullname ? fullname : nick);
nick, nick, server, fullname);
write(srv, bufout, strlen(bufout));
snprintf(ping, sizeof(ping), "PING %s\r\n", server);