From ddba35710aa04e33bb061225764a7a9a1165beae Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 18 Apr 2013 22:50:12 +0200 Subject: [PATCH] m_spanningtree Fix IS_LOCAL() check in OnRehash handler --- src/modules/m_spanningtree/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index e7892526e..fdb9ef200 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -783,7 +783,7 @@ void ModuleSpanningTree::OnRehash(User* user) std::string msg = "Error in configuration: "; msg.append(e.GetReason()); ServerInstance->SNO->WriteToSnoMask('l', msg); - if (!IS_LOCAL(user)) + if (user && !IS_LOCAL(user)) ServerInstance->PI->SendSNONotice("L", msg); } } -- 2.39.5