summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-10 21:56:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-10 21:56:45 +0000
commit5ec0078659c33a290829804b3147b3047bb42f28 (patch)
treeb0b83b81f71c91d77213916012bfeda02280d89d /src/modules
parentaac846ef91b64164922311997cf3bb9a6878a14d (diff)
Add correct stuff so that /taxonomy can show the cloaked hosts for users in their metadata
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9452 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index a0318df86..e5cf64988 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -289,10 +289,21 @@ class ModuleCloaking : public Module
ServerInstance->Modules->UseInterface("HashRequest");
- Implementation eventlist[] = { I_OnRehash, I_OnUserDisconnect, I_OnCleanup, I_OnCheckBan, I_OnUserConnect };
- ServerInstance->Modules->Attach(eventlist, this, 5);
+ Implementation eventlist[] = { I_OnRehash, I_OnUserDisconnect, I_OnCleanup, I_OnCheckBan, I_OnUserConnect, I_OnSyncUserMetaData };
+ ServerInstance->Modules->Attach(eventlist, this, 6);
}
+ void OnSyncUserMetaData(User* user, Module* proto,void* opaque, const std::string &extname, bool displayable)
+ {
+ if ((displayable) && (extname == "cloaked_host"))
+ {
+ std::string* cloak;
+ if (user->GetExt("cloaked_host", cloak))
+ proto->ProtoSendMetaData(opaque, TYPE_USER, user, extname, *cloak);
+ }
+ }
+
+
virtual int OnCheckBan(User* user, Channel* chan)
{
char mask[MAXBUF];