various small fixes

This commit is contained in:
Alexander S. Aganichev 2002-05-31 13:55:45 +00:00
parent b84eed4ea2
commit c812344f52
4 changed files with 10 additions and 3 deletions

View File

@ -12,6 +12,11 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ 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 - Fixed packed messagebase operation. The feature was only implemented
for the Squish messagebase and even there scan was improperly for the Squish messagebase and even there scan was improperly
implemented. implemented.

View File

@ -356,7 +356,7 @@ void CfgArealistscan() {
void CfgArealistsort() { void CfgArealistsort() {
strupr(strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort))); strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort));
} }
// ------------------------------------------------------------------ // ------------------------------------------------------------------

View File

@ -58,6 +58,8 @@ const char *url_begin(const char *ptr) {
if(strnieql(ptr, "http://", 7)) if(strnieql(ptr, "http://", 7))
return ptr+7; return ptr+7;
if(strnieql(ptr, "https://", 8))
return ptr+8;
if(strnieql(ptr, "ftp://", 6)) if(strnieql(ptr, "ftp://", 6))
return ptr+6; return ptr+6;
if(strnieql(ptr, "www.", 4)) if(strnieql(ptr, "www.", 4))

View File

@ -72,9 +72,9 @@ int tzoffset() {
int tz = a->tm_hour * 100 + a->tm_min; int tz = a->tm_hour * 100 + a->tm_min;
a = gmtime(&t); a = gmtime(&t);
tz -= a->tm_hour * 100 + a->tm_min; tz -= a->tm_hour * 100 + a->tm_min;
if(tz < -12*100) if(tz < -24*100)
tz += 24*100; tz += 24*100;
else if(tz > 12*100) else if(tz > 24*100)
tz -= 24*100; tz -= 24*100;
return tz; return tz;
} }