2e7f0f9c12
Adds a mod_ucmd plugin which uses the previously added user command plugin functions to send user commands when users log in. These are read from a text file in a simple format. They can be restricted to users with certain credentials, and can have multiple actions (e.g., send a PM and a message in the main chat). A sample user command file for the standard uhub commands is at doc/ucmd.conf, and will be automatically installed if appropriate. This currently won't send commands to existing users (e.g., if the plugin is (re)loaded after the hub is already up and running). To support this, a plugin function to list all current users would need to be added. I'm not sure how efficient this would be due to the volume of messages needed to delete the existing commands on shutdown and send them again on startup. As the commands are reloaded properly within the plugin, it may be easier to require users to reconnect after the configuration changes (and, of course, an admin could force this by restarting the hub). |
||
---|---|---|
admin | ||
autotest | ||
debian | ||
doc | ||
src | ||
thirdparty | ||
tools | ||
vs2010 | ||
.gitignore | ||
.gitmodules | ||
AUTHORS | ||
BSDmakefile | ||
BUGS | ||
ChangeLog | ||
COPYING | ||
COPYING.OpenSSL | ||
GNUmakefile | ||
README | ||
TODO | ||
version.h |
Welcome and thanks for downloading uHub, a high performance ADC p2p hub. For the official documentation, bugs and other information, please visit: http://www.uhub.org/ For a list of compatible ADC clients, see: http://en.wikipedia.org/wiki/Advanced_Direct_Connect#Client_software