summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)