.
.
This feature will be available in version 2.3Hi guys.
It's a long time i want to introduce a feature like this.
You know you can use template macros for much more than just painting web pages: you can load and save files, run programs, etc.
Why limit this potential to the template? So, don't!
From next 2.3 beta build you will be able to use your editor to make a file named "hfs.events" (next to "hfs.exe").
Using the same syntax as the templates one, you'll be able to DO things when some events occur.
Example
[connected]
{.disconnect.}
This will prevent any access to your HFS, because any connection will just be disconnected. Quite useless, i know, but it's to keep the example easy.

You can be selective over disconnections by using other macros.
Another example, this will limit to 10KB/s every file with "hey" in the name
[download]
{.if|{.is substring|%item-name%|hey.}| {:
{.set speed limit for connection| 10 .}
:}.}
Currently supported events are:
connected, disconnected, request, download, download completed, upload completed.
As you can see from the examples, new useful macros are coming, designed with events in mind.
Stay tuned for the next beta in the "beta" forum.
Suggestions?