It will be nice If you organize your database for example :
on *:TEXT:*!Register Nick*:#ChannelName: { /command1 /command2 /command2 ... etc }