ElementalAlchemist / txircd

Modular IRCd built using Twisted. Made to be extremely customizable.
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Add a command alias module #147

Closed Heufneutje closed 7 years ago

Heufneutje commented 7 years ago

What it says on the tin. It's very basic in concept. I wanted to make it so that you could actually split up the parameters but I figured that would get very messy and needlessly complicated as I can't think of a use case that would actually require splitting up the parameters.

For the validation I'm mainly just making sure all of the commands are actual valid commands and in all caps to keep the aliases consistent with the normal commands. We're also assuming people aren't stupid enough to use actual existing commands as aliases. We ARE however assuming people are stupid enough to create infinite recursions which would disastrous for the server, so we are checking for those.

Heufneutje commented 7 years ago

Should be fixed now.

ElementalAlchemist commented 7 years ago

Looks good now! I think I'm going to look at updating how to configure it in the future, but I think this is usable for now as it is.