diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:33:41 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:33:41 +0000 |
commit | 75a158fe6361319628f6145b7b3b3458c55ac85a (patch) | |
tree | 0df345feae05479377d2e06d933702dfa5fa9c77 /src/modules/m_spanningtree | |
parent | 2307fd05b237b01e956e89de0a90613c6fdbfd78 (diff) |
Fix automated metadata decoding with ExtItem
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11715 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/metadata.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/metadata.cpp b/src/modules/m_spanningtree/metadata.cpp index f012568f9..40a98d93b 100644 --- a/src/modules/m_spanningtree/metadata.cpp +++ b/src/modules/m_spanningtree/metadata.cpp @@ -28,6 +28,7 @@ bool TreeSocket::MetaData(const std::string &prefix, parameterlist ¶ms) else if (params.size() < 3) params.push_back(""); TreeServer* ServerSource = Utils->FindServer(prefix); + ExtensionItem* item = Extensible::GetItem(params[1]); if (ServerSource) { if (params[0] == "*") @@ -39,6 +40,8 @@ bool TreeSocket::MetaData(const std::string &prefix, parameterlist ¶ms) Channel* c = this->ServerInstance->FindChan(params[0]); if (c) { + if (item) + item->unserialize(FORMAT_NETWORK, c, params[2]); FOREACH_MOD_I(this->ServerInstance,I_OnDecodeMetaData,OnDecodeMetaData(c,params[1],params[2])); } } @@ -47,6 +50,8 @@ bool TreeSocket::MetaData(const std::string &prefix, parameterlist ¶ms) User* u = this->ServerInstance->FindNick(params[0]); if (u) { + if (item) + item->unserialize(FORMAT_NETWORK, u, params[2]); FOREACH_MOD_I(this->ServerInstance,I_OnDecodeMetaData,OnDecodeMetaData(u,params[1],params[2])); } } |