From d3f6802234f298352d67832efdad3a8f2ae533c4 Mon Sep 17 00:00:00 2001 From: special Date: Thu, 27 Sep 2007 00:12:13 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/treesocket2.cpp') 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 &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())); -- cgit v1.3.1-10-gc9f91