Remove the unneeded username parameter to register_local_user().

This commit is contained in:
Jilles Tjoelker 2015-03-06 00:41:51 +01:00
parent 83e5941c87
commit 2125182293
7 changed files with 13 additions and 30 deletions

View file

@ -110,10 +110,8 @@ mr_pong(struct Client *client_p, struct Client *source_p, int parc, const char *
{
if(source_p->localClient->random_ping == incoming_ping)
{
char buf[USERLEN + 1];
rb_strlcpy(buf, source_p->username, sizeof(buf));
source_p->flags |= FLAGS_PING_COOKIE;
register_local_user(client_p, source_p, buf);
register_local_user(client_p, source_p);
}
else
{