From 4085aeb86f90cef4c566e23b2a00a1430bb0feaf Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Nov 2007 20:17:21 +0000 Subject: Dont propogate K-lines git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8469 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 470ae7b36..9497d25d0 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -738,6 +738,9 @@ void ModuleSpanningTree::OnOper(User* user, const std::string &opertype) void ModuleSpanningTree::OnAddLine(XLine* line, User* user) { + if (line->type == "K") + return; + char data[MAXBUF]; snprintf(data,MAXBUF,"%s %s %s %lu %lu :%s", line->type.c_str(), line->Displayable(), ServerInstance->Config->ServerName, line->set_time, line->duration, line->reason); @@ -758,6 +761,9 @@ void ModuleSpanningTree::OnAddLine(XLine* line, User* user) void ModuleSpanningTree::OnDelLine(XLine* line, User* user) { + if (line->type == "K") + return; + char data[MAXBUF]; snprintf(data,MAXBUF,"%s %s", line->type.c_str(), line->Displayable()); std::deque params; -- cgit v1.2.3