1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 16:23:13 +02:00

+- Fixed problem with u_int32_t servicesstamps, with SVSMODE and SVS2MODE,

+  found by Andrew Church
\ No newline at end of file
This commit is contained in:
stskeeps
2001-06-09 15:30:01 +00:00
parent d9941457ad
commit fecfd72417
2 changed files with 10 additions and 6 deletions
+2
View File
@@ -553,3 +553,5 @@ seen. gmtime warning still there
- HOOKTYPE_REHASH sent when a rehash is being done
Note: if you parse a block in conf_unknown make sure to del_ConfigItem it from the list
or Unreal will return an unknown directive error for it.
- Fixed problem with u_int32_t servicesstamps, with SVSMODE and SVS2MODE,
found by Andrew Church
+8 -6
View File
@@ -4747,10 +4747,11 @@ int m_svs2mode(cptr, sptr, parc, parv)
max_global_count = atoi(parv[3]);
break;
case 'd':
if (parv[3] && (isdigit(*parv[3])
|| (*parv[3] == '!')))
acptr->user->servicestamp =
TS2ts(parv[3]);
if (parv[3] && (isdigit(*parv[3])))
{
acptr->user->servicestamp =
strtoul(parv[3], NULL, 10);
}
break;
case 'i':
if (what == MODE_ADD
@@ -4877,8 +4878,9 @@ int m_svsmode(cptr, sptr, parc, parv)
case 'd':
if (parv[3] && isdigit(*parv[3]))
{
acptr->user->servicestamp =
atol(parv[3]);
acptr->user->servicestamp =
strtoul(parv[3], NULL, 10);
break;
}
default: