From d1efba87419d5ca0b88415c2050e30a1df3993f3 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 5 Feb 2006 16:21:47 +0000 Subject: Fixed another issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3098 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 6ff7f7435..95083217e 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -3329,16 +3329,22 @@ class ModuleSpanningTree : public Module virtual void OnSetAway(userrec* user) { - std::deque params; - params.push_back(":"+std::string(user->awaymsg)); - DoOneToMany(user->nick,"AWAY",params); + if (IS_LOCAL(user)) + { + std::deque params; + params.push_back(":"+std::string(user->awaymsg)); + DoOneToMany(user->nick,"AWAY",params); + } } virtual void OnCancelAway(userrec* user) { - std::deque params; - params.push_back(":"); - DoOneToMany(user->nick,"AWAY",params); + if (IS_LOCAL(user)) + { + std::deque params; + params.push_back(":"); + DoOneToMany(user->nick,"AWAY",params); + } } virtual void ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) -- cgit v1.2.3