- void Implements(char* List)
- {
- List[I_OnSyncUserMetaData] = List[I_OnPreCommand] = List[I_OnUserList] = List[I_On005Numeric] = 1;
- }
-
- virtual ~ModuleUHNames()
- {
- }
-
- void OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, const std::string &extname, bool displayable)
- {
- if ((displayable) && (extname == "UHNAMES"))
- proto->ProtoSendMetaData(opaque, TYPE_USER, user, extname, "Enabled");
- }
-
- virtual Version GetVersion()
+ public:
+ ModuleUHNames()
+ : Names::EventListener(this)
+ , cap(this, "userhost-in-names")