mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 11:23:12 +02:00
- Services timestamps are now always treated as an unsigned long (0..2^32-1), instead
of accidently as signed long during netsynchs. This bug caused issues with values larger than 2147483647. Reported by avenger (#0002980).
This commit is contained in:
@@ -1341,3 +1341,6 @@
|
||||
Markevich (#0002866).
|
||||
- Win32: we now no longer crash if no access to write to service.log, suggested and
|
||||
patch by Xuefer (#0002886).
|
||||
- Services timestamps are now always treated as an unsigned long (0..2^32-1), instead
|
||||
of accidently as signed long during netsynchs. This bug caused issues with values
|
||||
larger than 2147483647. Reported by avenger (#0002980).
|
||||
|
||||
@@ -130,14 +130,14 @@ DLLFUNC CMD_FUNC(m_user)
|
||||
if (parc == 6 && IsServer(cptr))
|
||||
{
|
||||
if (isdigit(*parv[4]))
|
||||
sstamp = atol(parv[4]);
|
||||
sstamp = strtoul(parv[4], NULL, 10);
|
||||
realname = (BadPtr(parv[5])) ? "<bad-realname>" : parv[5];
|
||||
umodex = NULL;
|
||||
}
|
||||
else if (parc == 8 && IsServer(cptr))
|
||||
{
|
||||
if (isdigit(*parv[4]))
|
||||
sstamp = atol(parv[4]);
|
||||
sstamp = strtoul(parv[4], NULL, 10);
|
||||
realname = (BadPtr(parv[7])) ? "<bad-realname>" : parv[7];
|
||||
umodex = parv[5];
|
||||
virthost = parv[6];
|
||||
@@ -145,7 +145,7 @@ DLLFUNC CMD_FUNC(m_user)
|
||||
else if (parc == 9 && IsServer(cptr))
|
||||
{
|
||||
if (isdigit(*parv[4]))
|
||||
sstamp = atol(parv[4]);
|
||||
sstamp = strtoul(parv[4], NULL, 10);
|
||||
realname = (BadPtr(parv[8])) ? "<bad-realname>" : parv[8];
|
||||
umodex = parv[5];
|
||||
virthost = parv[6];
|
||||
|
||||
Reference in New Issue
Block a user