- Srv = Me;
- // Create a new command:
- // command will be called /WOOT, and will
- // call handle_woot when triggered, the
- // 0 in the modes parameter signifies that
- // anyone can issue the command, and the
- // command takes only one parameter.
- newcommand = new cmd_woot();
- Srv->AddCommand(newcommand);
-
- // Add a mode +Z for channels with no parameters
- Srv->AddExtendedMode('Z',MT_CHANNEL,false,1,0);