From: Chris Porter Date: Wed, 6 Aug 2008 23:11:46 +0000 (+0100) Subject: Move TS code around a bit. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/94699bdc39d3c06099af2794f3a6f1a3034d9c25 Move TS code around a bit. --- diff --git a/nick/nickhandlers.c b/nick/nickhandlers.c index c7c3fee2..8d78e8d7 100644 --- a/nick/nickhandlers.c +++ b/nick/nickhandlers.c @@ -167,11 +167,12 @@ int handlenickmsg(void *source, int cargc, char **cargv) { sethostarg++; if ((accountts=strchr(cargv[accountarg],':'))) { + time_t accountts_t=strtoul(accountts,&accountid,10) *accountts++='\0'; if(accountid) { strncpy(np->authname,cargv[accountarg],ACCOUNTLEN); np->authname[ACCOUNTLEN]='\0'; - np->accountts=strtoul(accountts,&accountid,10); + np->accountts=accountts_t; userid=strtoul(accountid + 1,&accountflags,10); if(!userid) {