From 34ec08348c835db72c0cd1745bba5832ee0bb394 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 10 Mar 2005 01:29:30 +0000 Subject: [PATCH] - /SAMODE could cause 'fishy timestamp' if digit parameters were used (eg: SAMODE #chan +l 5), this has now be fixed by sending an explicit TS 0. --- .RELEASE.NOTES | 1 + Changes | 2 ++ src/modules/m_mode.c | 3 +++ 3 files changed, 6 insertions(+) diff --git a/.RELEASE.NOTES b/.RELEASE.NOTES index e5a54d640..924744772 100644 --- a/.RELEASE.NOTES +++ b/.RELEASE.NOTES @@ -105,6 +105,7 @@ Unreal3.2.3-pre3 Release Notes - zlib upgraded to 1.2.2, curl upgraded to 7.13.1, both fix various issues. - Win32 installer now also installs doc\technical\*.* - Desynch issues regarding +s/+p and +c/+S +- /SAMODE causing a 'fishy timestamp' if a cmode with a digit parameter was used. ==[ REMOVED ]== - NAZIISH_CHBAN_HANDLING (did not work at all) diff --git a/Changes b/Changes index 1f007c36b..a35d8b166 100644 --- a/Changes +++ b/Changes @@ -765,3 +765,5 @@ ** internal 3.2.3-pre3 release ** - Some spelling fixes in unreal32docs.html, reported by alex323 (#2412). - Updated the list of donators +- /SAMODE could cause 'fishy timestamp' if digit parameters were used (eg: SAMODE #chan +l 5), + this has now be fixed by sending an explicit TS 0. diff --git a/src/modules/m_mode.c b/src/modules/m_mode.c index 2e2a12585..84c9d9b78 100644 --- a/src/modules/m_mode.c +++ b/src/modules/m_mode.c @@ -498,6 +498,9 @@ creationtime = sendts; sendto_serv_butone_token(cptr, sptr->name, MSG_MODE, TOK_MODE, "%s %s%s %s %lu", chptr->chname, isbounce ? "&" : "", modebuf, parabuf, sendts); + else if (samode && IsMe(sptr)) /* SAMODE is a special case: always send a TS of 0 (omitting TS==desynch) */ + sendto_serv_butone_token(cptr, sptr->name, MSG_MODE, TOK_MODE, + "%s %s %s 0", chptr->chname, modebuf, parabuf); else sendto_serv_butone_token(cptr, sptr->name, MSG_MODE, TOK_MODE, "%s %s%s %s", chptr->chname, isbounce ? "&" : "",