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). |
||
---|---|---|
.. | ||
init.d.RedHat/etc | ||
upstart/etc/init | ||
architecture.txt | ||
compile.txt | ||
Doxyfile | ||
extensions.txt | ||
getstarted.txt | ||
plugins.conf | ||
rules.txt | ||
ucmd.conf | ||
uhub-passwd.1 | ||
uhub.1 | ||
uhub.conf | ||
uhub.dot | ||
uhub.ebuild | ||
uhub.spec | ||
users.conf |