diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-10 20:53:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-10 20:53:31 +0000 |
commit | 276bbd193ed9dc53f44a4f564401d577d8e31424 (patch) | |
tree | e0c369d20e9fb56b0bb36bf015bfcc64f9e04b92 /src/modules/m_uhnames.cpp | |
parent | f15d73c316623f394c3de72959de382f413cbd96 (diff) |
Add m_taxonomy and api minor tweak to make it work, enable some modules for it.
I have higher aims for this module, namely a neat fix for feature request in bug #285
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6967 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r-- | src/modules/m_uhnames.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index b0981d58d..3663ab4ca 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -32,13 +32,19 @@ class ModuleUHNames : 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 ~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() { return Version(1,1,0,1,VF_VENDOR,API_VERSION); |