FlexHub Forum

FlexHub General => Announcements => Topic started by: en_dator on December 01, 2011, 22:27:31

Title: Flexhub Beta 0.2 svn 1236 released
Post by: en_dator on December 01, 2011, 22:27:31
This time there are lots of new things, I hope there is a little for everyone in the package.
For this update a restart of the hub is needed.

Use '!update now' in your hub or download it here (http://www.flexhub.org/forum/index.php?action=downloads;cat=2).

Changelog svn 1236:

This release is dedicated to newborn, he earned the stroopwafels

+ added : added option to show searches in feed, defaults to false
+ added : New option to !showcmd -showvars, lists all avaliable variables for textcommands and their current value
+ added : New option to text commands, you can now use the variable %[parm] in texts to fill from the command line, for use like this:
      !addcmd slap -o2 -h"Slap someone in mainchat" "%[user_name] slaps %[parm] with a rotten fish. Oh man it smells bad!"
      Then use it with !slap anynick :).
+ added : new setting pass_allowblank, default to false, to allow creating accounts with blank passwords (and allowing them to enter the hub)
+ added : its now possible to create accounts without a password set, but only when supplying an ip at the same time, the user must supply a password on first login or set one with !setpass manually after login (depending on protocol and client supports)
+ added : new set command showemptypass to list all accounts with no password set.(anyone has a better name for it?)
+ added : a timer function that checks all accounts once every 24 hours and notifies the hubowner about any accounts without password set
+ added : ADC extension LC information is shown in !ui and sent to clients supporting the LC extension
+ added : Login message to profiles, modified showprofile/modprofile commands to allow setting the new string
      to show the message use the variable %[user_profilemessage] in a text command.
+ added : on login operators are notified if mainchat are locked
+ added : #875588 Option to clean redirects count https://bugs.launchpad.net/flexhub/+bug/875588
+ added : #726443 option to force hideshare on profile https://bugs.launchpad.net/flexhub/+bug/726443
+ added : added TLS in $Supports for NMDC - http://strongdc.sourceforge.net/forum/viewtopic.php?f=11&t=5528
+ added : added list of running ports to !hubinfo
+ added : added %[address_nmdc], %[address_nmdcs], %[address_adc] and %[address_adcs] to text variables, shows empty string if no port is running, else shows main hub address including protocol and a running port.
+ added : profile minshare setting added, set to false to use the normal hubsetting for minshare (this is the default) #804061 Different share for each profile https://bugs.launchpad.net/flexhub/+bug/804061

* changed : addreg/setpass/setmypass/getpass/reginfo/userinfo commands has support for accounts with blank passwords
* changed : added allow setmypass / getmypass to all profiles
* changed : added more info to !modprofile -h

- fixed : the massive settings spam on fresh hub startup removed
- fixed : text ending up in console feedwindow could throw a popup
- fixed : bug where client messages shorter than four chars could be discarded by the hub
- fixed : #875563 Password length setting https://bugs.launchpad.net/flexhub/+bug/875563
- fixed : bug in !setmypass where it did not test for valid character
- fixed : password chars tested when entering passwords in hub console (Hub-Gui.lua)
- fixed : importing bug when imported profile had name 'bot'
- fixed : added < > ™ and € conversion when importing accounts from xml-formatted file
- fixed : !showcmd <cmd name> now also shows the help and rc string in the output
- fixed : !corestats not showing correct port for hub address #887108 Port not running https://bugs.launchpad.net/flexhub/+bug/887108
- fixed : !modcmd parameter parsing (again)
- fixed : #864189 SP missing from feed report https://bugs.launchpad.net/flexhub/+bug/864189
- fixed : copy paste error in !getmypass, now returns with the correct info
- fixed : !setmypass will always be allowed for users with blank password even if a user with reg profile normally wouldnt be allowed to use it
- fixed : regging a user already in the hub with blank pass didnt work so well
- fixed : redirect information was missing from some types of action rules https://bugs.launchpad.net/flexhub/+bug/862289
- fixed : the password used with command regme is no longer showing in feed
- fixed : using the wrong size extension when setting share setting made the hub barf
- fixed : #884886 Hub won't close on windows reboot https://bugs.launchpad.net/flexhub/+bug/884886
- fixed : fix for old ynhub bots, if $BotINFO is sent when not part of $Supports the client is not disconnected if the override 'checkmyinfo' is added on the profile (pako trivia bot 2.0)
- fixed : fix for old ynhub bots, if $Supports is not sent, a fake $Supports = "NoGetINFO,NoHello,UserIP2" is used if the override 'checkmyinfo' is added on the profile (pako trivia bot 2.x)
- fixed : combined pattern actions was not ok


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 FlexHub_0.1_1146_linux.tgz if you don't already have it. FlexHub currently doesn't run on 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
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: FlipFlop™ on December 02, 2011, 02:36:08
Nice work m8!

Note for hubowners: this version contains a small glitch that shows 'Ignore' actions for min and maxlength security settings (deflooding) in feed on level 0. This should be going to level 2, will be fixed soon.

It mostly shows on max length of searchreplies (SR). Using '!set sr_maxlength 512' will allow longer searchreplies, and won't flood feed as much, the original value of 256 was a bit low anyway.
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: bleh on December 02, 2011, 03:50:38
Raw text commands seem to have stopped working after this update...

Also if %[parm] appears more than once in a text command, it asks for more than one parameter. Would it be possible in a future release to be able to reuse the same parameter more than once? Maybe have it so that if more than one parameter is needed we could use %[parm2] or something.

Thank you for your time and hard work!
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: Hamachi on December 02, 2011, 09:04:39
Where is https://bugs.launchpad.net/flexhub/+bug/890996 ?
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: en_dator on December 02, 2011, 17:58:54
Where is https://bugs.launchpad.net/flexhub/+bug/890996 ?
As far as I can tell it is working correctly. When regging it will use the address and port that is set as hubaddress ( !set hub_address as shown in !set main)
 If that is a secure port it will post nmdcs:// and or adcs:// addys depending on if allownmdc is true and if allowadc is true (!set rules ) and if it is not a secure port it will use dchub:// and adc:// addies.

Please remember that the address and port set with !set hub_address is mainly used for information like when reggin at hublists or when using the %[address] variable in a text command, users can still connect to the hub using any avaliable port and protocol. Technically the address and port set in hub_address doesnt even have to exist  :-\

Raw text commands seem to have stopped working after this update...

Also if %[parm] appears more than once in a text command, it asks for more than one parameter. Would it be possible in a future release to be able to reuse the same parameter more than once? Maybe have it so that if more than one parameter is needed we could use %[parm2] or something.

Thank you for your time and hard work!

fix one thing, break something else  ;D
I will take a look at raw.

The usage or %[parm] is designed that way on purpose, when you create a text command you dont have to worry about the number of parameters, the downside as you say is that the order will depend on what the user writes, and you can only use each parameter once.

But if you think that doing it with numbers instead will be  better choice I'll have alook at it

/1d
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: en_dator on December 02, 2011, 18:19:19
sorry,

yes, its confirmed, on reg and in !hubinfo it doesnt use the correct protocol

 :(
Title: Re: Flexhub Beta 0.2 svn 1236 released
Post by: Hamachi on December 03, 2011, 10:04:38
Hmm

!hubinfo
Running Ports    : 1234(S), 8000(R)

but it only send:
!addreg
Hubaddress:   ADC: