FlexHub Forum

Flexhub Beta 0.2 svn 1403 released

Flexhub Beta 0.2 svn 1403 released
« on: November 17, 2012, 19:24:08 »
So here are another great update of your favourite hubsoft :)

We had some really cool stuff planned for you in this release, but unfortunately we crashed and burned on that so instead we give you whats left in the hope you wont be too disappointed with us,

Please be aware that one of the reasons for this version taking so long to get public is that we have had some stability issues, and while I hope we have fixed them I can't promise we have. So remember to report anything that looks wrong (and do backups).

  • Lots of new profile settings (most of the ones from the !set rules section)
  • Private rooms are now saved and restored on hub restarts (more changes to chatrooms will come later)
  • New supports added : adc ORLY and nmdc $SetIcon
  • Periodic cleaning of internal logs to reduce memory usage
  • Almost all transfers are buffered and sent in batches to reduce server load
  • Some optimizations to reduce CPU usage and more optimizations to reduce memory use even more
  • Possibility to restore (partial) user data on hubrestart
  • purgeaccounts is a new function to remove unused accounts, I seem to recall that has been asked for once or twice :)
  • A new command !testpattern, used for testing if a text matches any stored pattern, use to test wheter the pattern you added actually works like you thought or not
  • Some changes and bug fixes for import function, we also added support for importing Luadch accounts.
  • Hopefully finally got the rd deadend problems solved.

Please note that due to some issues in the past some files are missing from the inline update. If you want to use the import feature please get the complete archive from the forum
and take the files from the import folder and place them into your installation before running the import.
Please also remember that the file format of the accounts file you want to import into FlexHub MUST be saved in the same format and using same codepage as the setting for the nmdc charset in your FlexHub.
That is the only way account names may be correctly translated/detected.

We have had some stability issues, which is one of the reasons why this update has been delayed so much, so please, please - do backups

and more bugfixes as noted in the changelog below:

Code: [Select]
svn 1403
* changed : ClientQuit from Listenthread is now pcalled
* changed : IsLocal check completed with the 172 class B network ([color=blue]!set protect_local[/color] in [color=blue]!set security[/color])
* changed : TCPSend optimized, only tBuffer[sid].Send.Data left, removed Login and Chat
* changed : added debug for undeliverable PM in ADC and NMDC.
* changed : added tSend:Raw delays to searches, searchreplies and connectionrequests
* changed : all blocks should now work also for offline users, if the user has been logged in to the hub so the nick is avaliable in logs then it works with nick, else use ip.
* changed : cleanup of client data to nicklog
* changed : errors when sending webstats are now feedlevel 0
* changed : failover is sent also for regonly hubs now (but only if rd_failover is set to something, default value is an empty string so if that is not changed, no failover will be sent) http://adc.sourceforge.net/ADC-EXT.html#_fo_failover_hub_addresses, not sure if any clients other than AirDC++ supports it yet.
* changed : helptext for array mode and showprofile
* changed : min time interval for timed textcommands back to 1 sec
* changed : missing port in $Search will now notify in users mainchat instead of disconnect.
* changed : private rooms are now saved and restored on hub restart
* changed : removed AD from the stored support strings
* changed : removed additional fields from tLogs.Nick[nick]
* changed : removed maximum for commandsize, set minimum to 512
* changed : removed obsolete fields from tLogs.IP[ip]
* changed : removed upper limit for zpipemin, setting it very high will disable compression to save cpu
* changed : some optimizations to reduce CPU usage
* changed : when redirected user keeps reconnecting ip will be autobanned, controlled with deadend settings in !set redirects
+ added : [color=blue]!blockpm <nick or ip> -s[/color] for silent pm blocks
+ added : [color=blue]!purgeaccounts <profilename or *> <days not used>[/color]
+ added : [color=blue]!set ban_msg[/color] - Message that's added after the banreason when a banned user connects to the hub
+ added : [color=blue]!set sendinterval[/color]  determines the waittime after sendbuffer has been emptied and only "delay" traffic was added to buffer, bSendNow controls immediate sending
+ added : [color=blue]!set userdata_persistent[/color] to store and load userinfo and ipinfo
+ added : Now also imports Luadch accounts (only imports accounts with clear text passwords unless the pass_blank option is set true)
+ added : Socket sends counter to !corestats
+ added : another attempt in the search for the Holy Grail of TLS
+ added : attempt at preparation for API in $Version
+ added : debug.log info when restarting listen thread
+ added : first version of ORLY support for ADC (http://www.flexhub.org/forum/index.php?topic=444.0)
+ added : maxshare, minslots, maxslots, maxhubs, maxpublichubs, maxreghubs and maxophubs to profile settings (set to false to disable in profile and use main hub rules)
+ added : minor preparation for running all ports in one thread
+ added : new command added [color=blue]!testpattern[/color], now you can test if a text matches any stored patterns
+ added : new command added [color=blue]!unblock[/color] <nick or ip>, will remove all blocks from the ip/user (blocks are pm, download/search, mute, kenny and muppet)
+ added : new timer function CleanLogs that removes the full userdata from memory and only keeps a minimum of info to save memory, default days to keep is 7, to change it use [color=blue]!set userdata_keepdays[/color]
+ added : support for $SetIcon (is sent to NMDC pingers to provide an icon for the hub), use [color=blue]!set hub_iconurl <url to hubicon>[/color]
+ added : support for receiving updated HSUP from clients after login
+ added : thread duration checks to CheckListenThread for all ports and ssl handshake thread
+ added : total time online in [color=blue]!userinfo[/color] and [color=blue]!reginfo[/color]
- fixed : Error while executing function: SetCmd["delports"] :!delports 8000 / err: ...rshare/hubbar/Flexhub.airdcpp/./core/Hub-SetCmds.lua:2841: attempt to index global 'handled' (a nil value)
- fixed : HRLY only sent to adc users now :)
- fixed : ORLY support now as intended, its SUP added only after a full login
- fixed : Thread error: ./lib/modules\http.lua:244: attempt to index local 'reqt' (a boolean value)
- fixed : a bug that made the reg message fail when regging a user with some characters in the password (error:invalid capture index)
- fixed : added line parameter to [color=blue]!history[/color] right click and fixed the missing line feeds in the output
- fixed : bug could keep users online when there was a missing or malformed MyINFO/BINF during login
- fixed : bug in TCPSend causing delays to work the other way around...
- fixed : bug in import that made all nicks lowercase for ynhub and adch accounts
- fixed : but the wrong way: controlchar filter in attackstats addies
- fixed : default profiles had the blockdownload command wrong
- fixed : error on userinfo and reginfo for some imported accounts (./core/Hub-Cmds.lua:2629: attempt to compare number with nil)
- fixed : forgot to close the log file after import
- fixed : forgot to set iBufferSet to false whenever there was new data to send and interval has passed
- fixed : [color=blue]lockpm [/color]and [color=blue]unlockpm [/color]misplaced in RC menu
- fixed : missing check for download permissions with NAT on ADC
- fixed : [color=blue]modprofile -h[/color] sort order now matches [color=blue]showprofile [/color]sort order
- fixed : output of [color=blue]modprofile[/color] on wrong parameters used
- fixed : proper detection when flexhub.org server can't be reached for webstats
- fixed : silent blockpm response to user
- fixed : silent mute response to user
- fixed : small bug in [color=blue]!attackstats[/color] for display of source addresses
- fixed : stats are now sent in UTF8 to server
- fixed : sub dialogs of the hub GUI are now modal, can't minimize or modify other dialogs while they are open
- fixed : too many syntax levels in [color=blue]!corestats[/color] function
- fixed : two bugs in cleanlogs timer fFunc
- fixed : unused accounts that have been registered recently won't be purged automatically
- fixed : userinfo for purged userdata
- fixed : when changing profile level with [color=blue]!modprofile level <new level>[/color] the stored accounts was not updated
- fixed : delroom only worked if exact case was used
- fixed : wrong case on output from mute/muppet commands


NOTE: For !restart to work when running multiple FlexHubs, you'll have to make sure that the files you start the hub with, have a unique name. For Windows this means renaming both FlexHub.lua and FlexHub.exe (both the .exe and the .lua need to have the same name though), for Linux this means renaming FlexHub.lua only. So for example in Windows: rename FlexHub.lua to FlexHub1.lua and FlexHub.exe to FlexHub1.exe.

NOTE: Linux --nogui version needs the file: bit.so in the FlexHub lib-folder, available in the Linux archive in download section if you don't already have it. The FlexHub team currently does not support or supply Linux x64 versions.

NOTE: After '!update now' the hub will tell you if it needs a !restart or if you can just use !rs (reload scripts) instead. If the path to FlexHub.exe contains spaces the hub will have to be started once manually if it was running svn 1108 or earlier before updating, a correct restart script (for use with !restart) will only be created on manual startup.

Keep giving feedback!

Regards, the FlexHub team
« Last Edit: November 30, 2012, 22:34:06 by en_dator »

Re: Flexhub Beta 0.2 svn 1403 released
« Reply #1 on: November 18, 2012, 01:14:49 »
so, a few hours after release it looks like we didnt made a complete mess.

but we did manage to let a few bugs slip out,

an error on startup  ( /core/Hub-Gui.lua:304: bad argument #1 to 'pairs' (table expected, got string)  that LA found, temp fix here :  http://www.flexhub.org/forum/index.php?topic=510.0 )
alien found a problem with purgeaccounts where it dont like some of his imported accounts,  what happens is it will just not reply, feed says the command was successful, but it doesnt reply back at all in main
and there is a small issue with chatrooms if you stop and start the hub (restart works fine, just not stop and start using the console)

So it looks like there will be another update already in a day or two.

/1d

Re: Flexhub Beta 0.2 svn 1403 released
« Reply #2 on: November 19, 2012, 12:23:05 »
Hi!

Exactly what does the following mean: "+ added : another attempt in the search for the Holy Grail of TLS"
Is TLS supported on the windows version now (didnt seem to work when i tried it)?

/ S

Re: Flexhub Beta 0.2 svn 1403 released
« Reply #3 on: November 19, 2012, 18:10:50 »
No, TLS does not work on windows, and when it does I promise it wont be hidden somewhere way down in the changelog ;)

But we spent a lot of work trying to work around the socket problems on windows in order to allow the usage of encrypted transfers, but in the end we were not successful in getting it stable.

/1d

Re: Flexhub Beta 0.2 svn 1403 released
« Reply #4 on: November 20, 2012, 07:21:52 »
Ok, thanks for the info!

I am however truly greatful for the new features in this release - !purgeaccounts is GREAT!

/S

Re: Flexhub Beta 0.2 svn 1403 released
« Reply #5 on: November 20, 2012, 18:46:49 »
 :)

And I have fixes for the above mentioned issues and an update should be out shortly
(the problem with purgeaccounts had nothing to do with imported accounts this time, but instead the problem is that if you are purging too many accounts the list will overflow the client buffer)

200-300 at a time should work fine, but more seems to cause problems :)