From 7ee0ade96ae27d3605d1ae4d9fa6b39a309f1c9b Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 5 May 2008 13:01:42 +0000 Subject: Un-break this so remote users still get RemoteMessage okay if targetted at a specific user, remove comment also as it's using PI now anyway git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9646 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index b9dc2948a..480d5266d 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -363,8 +363,6 @@ int ModuleSpanningTree::HandleVersion(const std::vector& parameters * sent that message remotely via PUSH. * If the user is NULL, then the notice is sent locally via WriteToSnoMask with snomask 'l', * and remotely via SNONOTICE with mask 'l'. - * - * XXX: this should be migrated to use the protocol interface code, most likely. -- w00t */ void ModuleSpanningTree::RemoteMessage(User* user, const char* format, ...) { @@ -393,6 +391,8 @@ void ModuleSpanningTree::RemoteMessage(User* user, const char* format, ...) { if (IS_LOCAL(user)) user->WriteServ("NOTICE %s :%s", user->nick, text); + else + ServerInstance->PI->SendUserNotice(user, text); } SendingRemoteMessage = false; -- cgit v1.2.3