diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-21 13:18:32 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-21 13:18:32 +0000 |
commit | 1662db204d106761317bf347e87cc1d1a1ec8e0f (patch) | |
tree | 073dd927fef16200beff29f21d7f72e02184a3b9 /src | |
parent | d6c34d9250153470367b74abcf42ad4db12fc217 (diff) |
push metadata out on title-up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7483 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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()); |