diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:21:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:21:47 +0000 |
commit | d1efba87419d5ca0b88415c2050e30a1df3993f3 (patch) | |
tree | 70e151dfbd938097bcd23bc4eaf24e62328906f1 | |
parent | a69b0633fbe29a9e506d62bb728b3419781e3400 (diff) |
Fixed another issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3098 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
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<std::string> params; - params.push_back(":"+std::string(user->awaymsg)); - DoOneToMany(user->nick,"AWAY",params); + if (IS_LOCAL(user)) + { + std::deque<std::string> params; + params.push_back(":"+std::string(user->awaymsg)); + DoOneToMany(user->nick,"AWAY",params); + } } virtual void OnCancelAway(userrec* user) { - std::deque<std::string> params; - params.push_back(":"); - DoOneToMany(user->nick,"AWAY",params); + if (IS_LOCAL(user)) + { + std::deque<std::string> params; + params.push_back(":"); + DoOneToMany(user->nick,"AWAY",params); + } } virtual void ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) |