diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:14:25 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:14:25 +0100 |
commit | 74d469af3937518f7619a78bc2fe99a4d662deea (patch) | |
tree | 56f870978ce2befed64805ce6574261bac9c6ce9 /src/modules/m_spanningtree | |
parent | 38b22990eae47525f4e8064a29e585a89788ee58 (diff) | |
parent | 1b957ed3a9d79a0cbc71e79acca82d893b40f8ac (diff) |
Merge branch 'master+exttype' into master+no-rtti
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/metadata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/metadata.cpp b/src/modules/m_spanningtree/metadata.cpp index 13ccabc35..f758754b4 100644 --- a/src/modules/m_spanningtree/metadata.cpp +++ b/src/modules/m_spanningtree/metadata.cpp @@ -49,7 +49,7 @@ CmdResult CommandMetadata::Handle(User* srcuser, std::vector<std::string>& param std::string value = params.size() < 4 ? "" : params[3]; ExtensionItem* item = ServerInstance->Extensions.GetItem(params[2]); - if (item) + if ((item) && (item->type == ExtensionItem::EXT_CHANNEL)) item->unserialize(FORMAT_NETWORK, c, value); FOREACH_MOD(OnDecodeMetaData, (c,params[2],value)); } @@ -61,7 +61,7 @@ CmdResult CommandMetadata::Handle(User* srcuser, std::vector<std::string>& param ExtensionItem* item = ServerInstance->Extensions.GetItem(params[1]); std::string value = params.size() < 3 ? "" : params[2]; - if (item) + if ((item) && (item->type == ExtensionItem::EXT_USER)) item->unserialize(FORMAT_NETWORK, u, value); FOREACH_MOD(OnDecodeMetaData, (u,params[1],value)); } |