diff options
-rw-r--r-- | src/modules/m_customtitle.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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<std::string>* metadata = new std::deque<std::string>; + 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()); |