PtokaX forum

Forum => News => Topic started by: PPK on 11 April, 2017, 21:49:18

Title: PtokaX 0.5.2.2 released...
Post by: PPK on 11 April, 2017, 21:49:18
New PtokaX is here.

Win32 GUI with Lua 5.3.4 and SQLite (http://www.PtokaX.org/files/0.5.2.2-53.7z)
Win64 GUI with Lua 5.3.4 and SQLite (http://www.PtokaX.org/files/0.5.2.2-53-64.7z)
Win32 service/console with Lua 5.3.4 and SQLite (http://www.PtokaX.org/files/0.5.2.2-53-srv.7z)
Win64 service/console with Lua 5.3.4 and SQLite (http://www.PtokaX.org/files/0.5.2.2-53-srv-64.7z)

Win32 GUI with Lua 5.1.5 and SQLite (http://www.PtokaX.org/files/0.5.2.2-51.7z)
Win64 GUI with Lua 5.1.5 and SQLite (http://www.PtokaX.org/files/0.5.2.2-51-64.7z)
Win32 service/console with Lua 5.1.5 and SQLite (http://www.PtokaX.org/files/0.5.2.2-51-srv.7z)
Win64 service/console with Lua 5.1.5 and SQLite (http://www.PtokaX.org/files/0.5.2.2-51-srv-64.7z)

UniX source (various Linuxes, various BSDs, Solaris, illumos, Haiku, Mac OS X) (http://www.PtokaX.org/files/0.5.2.2-nix-src.tgz)

Quote from: Changelog...
Added: Reconnect to database on connection failure or connection lost.
Fixed: Compile for Windows 10 IoT.
Fixed: Typo in server manager and resource leak in sqlite on exit (thx Pavel Pimenov for report).
Fixed: Incorrect long length message when incomplete search command was received (thx Alexey for report).
Fixed: Search request was sent to users without share (thx Pavel Pimenov for report).
Fixed: Missing $ValidateDenide when user use nick that is in reserved nicks (thx Alexey for report).
Fixed: Extra pipe in !checknickban result (thx Alexey for report).
Fixed: IP and Port check in DC commands. (thx Mank and Rolex for report).
Fixed: Missing IP check for validity in some hub commands.
Fixed: Empty password received from user was not checked properly and accepted as new password for reg.
Fixed: Bandwidth waste, when IPv6 user send search request with IPv4 address.
Fixed: Possible crash on hublist registration (thx Pavel Pimenov for report).
Fixed: Bind to single IP caused bind to all addresses when IPv6 address was empty.
Fixed: Typo in scripting interface. MaxSlotsLimt -> MaxSlotsLimit (thx C??oßy†? for report).
Changed: Log script errors is enabled by default for PtokaX versions without GUI.
Title: Re: PtokaX 0.5.2.2 released...
Post by: ATAG on 05 December, 2019, 21:41:50
Hey

I've got some error on compile.

Quote
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:507:25: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetBoolCom[szi] != '\0') {
           ~~~~~~~~~~~~~~~ ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:530:26: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetShortCom[szi] != '\0') {
           ~~~~~~~~~~~~~~~~ ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:553:24: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetTxtCom[szi] != '\0') {
           ~~~~~~~~~~~~~~ ^  ~~~~

Quote
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

UP: solution is to change quote to double quote :D
Code: [Select]
if(SetBoolCom[szi] != "\0") {
Quote
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:507:25: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetBoolCom[szi] != "\0") {
                           ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:530:26: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetShortCom[szi] != "\0") {
                            ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:553:24: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetTxtCom[szi] != "\0") {