From 75a158fe6361319628f6145b7b3b3458c55ac85a Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:33:41 +0000 Subject: Fix automated metadata decoding with ExtItem git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11715 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/metadata.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_spanningtree') 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])); } } -- cgit v1.2.3