aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/treesocket2.cpp
diff options
context:
space:
mode:
authorGravatar special2007-09-27 00:12:13 +0000
committerGravatar special2007-09-27 00:12:13 +0000
commitd3f6802234f298352d67832efdad3a8f2ae533c4 (patch)
tree7de49fba09dce2f388b080f816280e6e5527bbcd /src/modules/m_spanningtree/treesocket2.cpp
parentFixed bug #404; this was caused by recieving multiple OPERTYPEs from a remote... (diff)
Forgot part of the fix for bug #404
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8087 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 8b573848f..d32c2cbe8 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -241,8 +241,9 @@ bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> &pa
userrec* u = this->Instance->FindNick(prefix);
if (u)
{
+ if (!u->IsModeSet('o'))
+ this->Instance->all_opers.push_back(u);
u->modes[UM_OPERATOR] = 1;
- this->Instance->all_opers.push_back(u);
strlcpy(u->oper,opertype.c_str(),NICKMAX-1);
Utils->DoOneToAllButSender(u->nick,"OPERTYPE",params,u->server);
this->Instance->SNO->WriteToSnoMask('o',"From %s: User %s (%s@%s) is now an IRC operator of type %s",u->server, u->nick,u->ident,u->host,irc::Spacify(opertype.c_str()));