summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 13:01:42 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 13:01:42 +0000
commit7ee0ade96ae27d3605d1ae4d9fa6b39a309f1c9b (patch)
treebd6832693035221b63ec3dd5a696e16f32880558 /src/modules
parenta4e252e003ecf3dcb7643af0904837998f295e4c (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/main.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>& 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;