X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fmetadata.cpp;h=816d0758ab1f14de274e45708766192cb716ca5c;hb=a4305d8f3c3e613be839bdcd61a1d14c87fed5aa;hp=47c2f8bc541ec19c6c3a9dde3da4a658a36d6950;hpb=d23c030c9a8fd58807438245a004e4aa5b7288ba;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/metadata.cpp b/src/modules/m_spanningtree/metadata.cpp index 47c2f8bc5..816d0758a 100644 --- a/src/modules/m_spanningtree/metadata.cpp +++ b/src/modules/m_spanningtree/metadata.cpp @@ -21,7 +21,7 @@ #include "inspircd.h" #include "commands.h" -CmdResult CommandMetadata::Handle(User* srcuser, std::vector& params) +CmdResult CommandMetadata::Handle(User* srcuser, Params& params) { if (params[0] == "*") { @@ -50,7 +50,7 @@ CmdResult CommandMetadata::Handle(User* srcuser, std::vector& param ExtensionItem* item = ServerInstance->Extensions.GetItem(params[2]); if ((item) && (item->type == ExtensionItem::EXT_CHANNEL)) - item->unserialize(FORMAT_NETWORK, c, value); + item->FromNetwork(c, value); FOREACH_MOD(OnDecodeMetaData, (c,params[2],value)); } else @@ -62,7 +62,7 @@ CmdResult CommandMetadata::Handle(User* srcuser, std::vector& param std::string value = params.size() < 3 ? "" : params[2]; if ((item) && (item->type == ExtensionItem::EXT_USER)) - item->unserialize(FORMAT_NETWORK, u, value); + item->FromNetwork(u, value); FOREACH_MOD(OnDecodeMetaData, (u,params[1],value)); } }