1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 01:56:38 +02:00

split all the local client stuff to acptr->local. makes it a lot easier to catch bugs.

If the IRCd crashes then it's likely not by this change but rather an existing issue that was previously gone unnoticed.
This commit is contained in:
Bram Matthys
2015-07-19 12:48:18 +02:00
parent 19ad342a73
commit 13fffa4e1a
47 changed files with 580 additions and 587 deletions
+2 -2
View File
@@ -242,7 +242,7 @@ void send_usage(aClient *cptr, char *nick)
return;
}
secs = rus.ru_utime.tv_sec + rus.ru_stime.tv_sec;
rup = TStime() - me.since;
rup = TStime() - me.local->since;
if (secs == 0)
secs = 1;
@@ -306,6 +306,6 @@ int checkprotoflags(aClient *sptr, int flags, char *file, int line)
if (!MyConnect(sptr))
ircd_log(LOG_ERROR, "[Debug] [BUG] ERROR: %s:%d: IsToken(<%s>,%d) on remote client",
file, line, sptr->name, flags);
return (sptr->proto & flags) ? 1 : 0;
return (sptr->local->proto & flags) ? 1 : 0;
}
#endif