summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 13:54:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-04 13:54:03 +0000
commitcd969f47e26cb9ed2e3e6a7ded85105abb7b1ce6 (patch)
tree3008466e635e686a06a4b5952a4832124640b6cc /src
parent0632c03ad21882ffab750a093558cf3dd2e90a5e (diff)
Fixed ops-on-join in anope
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2139 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 9992c02d4..f04f79a65 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1709,7 +1709,21 @@ class ModuleSpanningTree : public Module
// if the channel has a key, force the join by emulating the key.
params.push_back(channel->key);
}
- DoOneToMany(user->nick,"JOIN",params);
+ if (channel->GetUserCounter() > 1)
+ {
+ // not the first in the channel
+ DoOneToMany(user->nick,"JOIN",params);
+ }
+ else
+ {
+ // first in the channel, set up their permissions
+ // and the channel TS with FJOIN.
+ params.clear();
+ params.push_back(channel->name);
+ params.push_back(channel->age);
+ params.push_back("@"+std::string(user->nick));
+ DoOneToMany(Srv->GetServerName(),"FJOIN",params);
+ }
}
}