You can disable existing functions with the rights management, just set it to false for all user groups.
Otherwise to add a function for a specific channel, you have to do two things:
1) define the function with $commands[channel][command] = &$object to manage the command;
2) add a handler for the function in the corresponding handler function (pgmsg(), tell(), gc())