various small fixes
This commit is contained in:
parent
b84eed4ea2
commit
c812344f52
@ -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.
|
||||
|
@ -356,7 +356,7 @@ void CfgArealistscan() {
|
||||
|
||||
void CfgArealistsort() {
|
||||
|
||||
strupr(strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort)));
|
||||
strxcpy(CFG->arealistsort, val, sizeof(CFG->arealistsort));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user