diff options
Diffstat (limited to 'src/modules/m_namesx.cpp')
-rw-r--r-- | src/modules/m_namesx.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index dd2b32e7b..db8270cb9 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -31,13 +31,19 @@ class ModuleNamesX : public Module void Implements(char* List) { - List[I_OnPreCommand] = List[I_OnUserList] = List[I_On005Numeric] = 1; + List[I_OnSyncUserMetaData] = List[I_OnPreCommand] = List[I_OnUserList] = List[I_On005Numeric] = 1; } virtual ~ModuleNamesX() { } + void OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, const std::string &extname, bool displayable) + { + if ((displayable) && (extname == "NAMESX")) + proto->ProtoSendMetaData(opaque, TYPE_USER, user, extname, "Enabled"); + } + virtual Version GetVersion() { return Version(1,1,0,1,VF_VENDOR,API_VERSION); |