diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 13:12:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 13:12:10 +0000 |
commit | 59ca4eec57a9c8b37e79e3031c74b59d4803fc28 (patch) | |
tree | c6c721494286bf3c042eaacaa890be256bb16bcd /src/modules/m_swhois.cpp | |
parent | e728d9abdfd0ea41ac249273842924fe6bce6d4d (diff) |
Make all our modules use the new stuff rather than the send_ events
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9301 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_swhois.cpp')
-rw-r--r-- | src/modules/m_swhois.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 97f69c413..c6f26384a 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -75,13 +75,7 @@ class CommandSwhois : public Command * Sorry w00t i know this was your fix, but i got bored and wanted to clear down the tracker :) * -- Brain */ - std::deque<std::string>* metadata = new std::deque<std::string>; - metadata->push_back(dest->uuid); - metadata->push_back("swhois"); // The metadata id - metadata->push_back(*text); // The value to send - Event event((char*)metadata,(Module*)this,"send_metadata"); - event.Send(ServerInstance); - delete metadata; + ServerInstance->PI->SendMetaData(dest, TYPE_USER, "swhois", *text); // If it's an empty swhois, unset it (not ideal, but ok) if (text->empty()) @@ -262,13 +256,7 @@ class ModuleSWhois : public Module std::string *text = new std::string(swhois); user->Extend("swhois", text); - std::deque<std::string>* metadata = new std::deque<std::string>; - metadata->push_back(user->uuid); - metadata->push_back("swhois"); // The metadata id - metadata->push_back(*text); // The value to send - Event event((char*)metadata,(Module*)this,"send_metadata"); - event.Send(ServerInstance); - delete metadata; + ServerInstance->PI->SendMetaData(user, TYPE_USER, "swhois", *text); } virtual ~ModuleSWhois() |