#include "inspircd.h"
-/* $ModDesc: Provides channel +S mode (strip ansi color) */
-
/** Handles channel mode +S
*/
class ChannelStripColor : public SimpleChannelModeHandler
{
}
- void init() CXX11_OVERRIDE
- {
- ServerInstance->Modules->AddService(usc);
- ServerInstance->Modules->AddService(csc);
- Implementation eventlist[] = { I_OnUserPreMessage, I_On005Numeric };
- ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
- }
-
void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
{
tokens["EXTBAN"].push_back('S');