From 1662db204d106761317bf347e87cc1d1a1ec8e0f Mon Sep 17 00:00:00 2001 From: peavey Date: Sat, 21 Jul 2007 13:18:32 +0000 Subject: push metadata out on title-up git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7483 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_customtitle.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index d00bdf975..6e6de8da9 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -79,6 +79,16 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) text = new std::string(title); user->Extend("ctitle", text); +// METADATA peavey ctitle :Official Chat Helper + + std::deque* metadata = new std::deque; + metadata->push_back(user->nick); + metadata->push_back("ctitle"); // The metadata id + metadata->push_back(*text); // The value to send + Event event((char*)metadata,(Module*)this,"send_metadata"); + event.Send(ServerInstance); + delete metadata; + if (!vhost.empty()) user->ChangeDisplayedHost(vhost.c_str()); -- cgit v1.2.3