- Srv = new Server;
- // 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.
- Srv->AddCommand("WOOT",handle_woot,0,0,"m_testcommand.so");
-
- // Add a mode +Z for channels with no parameters
- Srv->AddExtendedMode('Z',MT_CHANNEL,false,1,0);