]> ruin.nu Git - NDIRC.git/commit
New infrastructure for commands with basic commands converted
authorMichael Andreen <harv@ruin.nu>
Sat, 28 Nov 2009 23:01:10 +0000 (00:01 +0100)
committerMichael Andreen <harv@ruin.nu>
Sun, 29 Nov 2009 14:38:17 +0000 (15:38 +0100)
commit52aa24ac076b97096ff29e7a59331654620f230c
treeabe39edaa2053ab559322da9faac385967e9b784
parentf58cbcf0fb3bfa5d89c5bb3b7fb928d8b1f35c9a
New infrastructure for commands with basic commands converted

Replace the method attributes and instead let every command extend the
Command class. Provide a command subroutine that is used to register
commands, which takes name, a hash of parameters and the class.

The Command class is simplified, the help, type and acl are reduced to
just one string instead of a list of strings.
Command.pm
Commands/Basic.pm
Dispatcher.pm