-/* UserNode.c - NeonServ v5.3
+/* UserNode.c - NeonServ v5.4
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
return NULL;
}
strcpy(user->host, cmask);
+ strncpy(user->nick, cmask, NICKLEN);
+ user->nick[NICKLEN] = 0;
user->created = time(0);
user->ident[0] = 0;
user->host[0] = 0;
user->flags = USERFLAG_ISSERVER;
user->channel = NULL;
user->last_who = 0;
- return user;
+ break;
} else if(cmask[i] == '@') {
if(user == NULL) return NULL;
cmask[i] = 0;