From fecfd7241721ed4bd7bb78b08a839db95cbf1d3a Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sat, 9 Jun 2001 15:30:01 +0000 Subject: [PATCH] +- Fixed problem with u_int32_t servicesstamps, with SVSMODE and SVS2MODE, + found by Andrew Church \ No newline at end of file --- Changes | 2 ++ src/s_user.c | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index b2df86c6d..e7fffbb69 100644 --- a/Changes +++ b/Changes @@ -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 \ No newline at end of file diff --git a/src/s_user.c b/src/s_user.c index 66ff6bcdd..60d559393 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -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: