From c812344f52f95a58c654342a60f70b021be52777 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Fri, 31 May 2002 13:55:45 +0000 Subject: [PATCH] various small fixes --- docs/notework.txt | 5 +++++ golded3/gccfgg1.cpp | 2 +- golded3/gectnr.cpp | 2 ++ goldlib/gall/gtimutil.cpp | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/notework.txt b/docs/notework.txt index 425237f..bcda3ca 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,11 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- Fixed the problem with 13 hour of UTC displacement. I hope noone + have 25 hour displacement, yep? :) + +- Added forgotten https:// to the list of known URLs beginning. + - Fixed packed messagebase operation. The feature was only implemented for the Squish messagebase and even there scan was improperly implemented. diff --git a/golded3/gccfgg1.cpp b/golded3/gccfgg1.cpp index 72523fd..54d5c3f 100644 --- a/golded3/gccfgg1.cpp +++ b/golded3/gccfgg1.cpp @@ -356,7 +356,7 @@ void CfgArealistscan() { void CfgArealistsort() { - strupr(strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort))); + strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort)); } // ------------------------------------------------------------------ diff --git a/golded3/gectnr.cpp b/golded3/gectnr.cpp index a7dbed6..1627cc0 100644 --- a/golded3/gectnr.cpp +++ b/golded3/gectnr.cpp @@ -58,6 +58,8 @@ const char *url_begin(const char *ptr) { if(strnieql(ptr, "http://", 7)) return ptr+7; + if(strnieql(ptr, "https://", 8)) + return ptr+8; if(strnieql(ptr, "ftp://", 6)) return ptr+6; if(strnieql(ptr, "www.", 4)) diff --git a/goldlib/gall/gtimutil.cpp b/goldlib/gall/gtimutil.cpp index 362bc3d..f816d76 100644 --- a/goldlib/gall/gtimutil.cpp +++ b/goldlib/gall/gtimutil.cpp @@ -72,9 +72,9 @@ int tzoffset() { int tz = a->tm_hour * 100 + a->tm_min; a = gmtime(&t); tz -= a->tm_hour * 100 + a->tm_min; - if(tz < -12*100) + if(tz < -24*100) tz += 24*100; - else if(tz > 12*100) + else if(tz > 24*100) tz -= 24*100; return tz; }