-
- ModuleUHNames(InspIRCd* Me)
- : Module(Me)
- {
- Implementation eventlist[] = { I_OnSyncUserMetaData, I_OnPreCommand, I_OnUserList, I_On005Numeric };
- ServerInstance->Modules->Attach(eventlist, this, 4);
- }
-
- void Implements(char* List)
- {
- List[I_OnSyncUserMetaData] = List[I_OnPreCommand] = List[I_OnUserList] = List[I_On005Numeric] = 1;
- }
-
- virtual ~ModuleUHNames()
- {
- }
-
- void OnSyncUserMetaData(User* user, Module* proto,void* opaque, const std::string &extname, bool displayable)
- {
- if ((displayable) && (extname == "UHNAMES"))
- proto->ProtoSendMetaData(opaque, TYPE_USER, user, extname, "Enabled");
- }