From 59ca4eec57a9c8b37e79e3031c74b59d4803fc28 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 13:12:10 +0000 Subject: 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 --- src/modules/m_customtitle.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modules/m_customtitle.cpp') diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index 491487b3c..5d0e77ffe 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -78,13 +78,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) text = new std::string(title); user->Extend("ctitle", text); - std::deque* metadata = new std::deque; - metadata->push_back(user->uuid); - 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; + ServerInstance->PI->SendMetaData(user, TYPE_USER, "ctitle", *text); if (!vhost.empty()) user->ChangeDisplayedHost(vhost.c_str()); -- cgit v1.2.3