From 7f0de14650cdfe520831e06cfba0c15e5e7d9e5d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 31 May 2007 17:43:23 +0000 Subject: Fix for issue discovered by satmd where it is possible to send an empty string via privmsg or notice to a user target, against the RFC standard. Remote servers don't like this much. Also fix: NOTICE generates OnUserNotice event, but checks against the I_OnUserMessage hook. Also also fix (!): Missing colons in "no text to send" message. BOTH of these also fixes have been around since like, 1.0 alpha 1, and nobody's noticed them! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7192 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index a134d95e1..e99af2e7d 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -851,6 +851,7 @@ void ModuleSpanningTree::OnUserNotice(userrec* user, void* dest, int target_type void ModuleSpanningTree::OnUserMessage(userrec* user, void* dest, int target_type, const std::string &text, char status, const CUList &exempt_list) { + ServerInstance->Log(DEBUG,"Message='%s'", text.c_str()); if (target_type == TYPE_USER) { // route private messages which are targetted at clients only to the server -- cgit v1.2.3