summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 16:21:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 16:21:47 +0000
commitd1efba87419d5ca0b88415c2050e30a1df3993f3 (patch)
tree70e151dfbd938097bcd23bc4eaf24e62328906f1
parenta69b0633fbe29a9e506d62bb728b3419781e3400 (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.cpp18
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)