From 0a1476a05f4431ac2d0f1aaac244577e74f8875d Mon Sep 17 00:00:00 2001 From: dz Date: Sun, 15 Mar 2009 18:31:56 +0000 Subject: Use IS_OPER(u) instead of checking for umode +o to correctly add opers during bursts, fixes bugs #786 and #778 reported by Taros. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11224 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/opertype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp index 27cb8bde4..18f3a6f9c 100644 --- a/src/modules/m_spanningtree/opertype.cpp +++ b/src/modules/m_spanningtree/opertype.cpp @@ -32,7 +32,7 @@ bool TreeSocket::OperType(const std::string &prefix, std::deque &pa User* u = this->ServerInstance->FindNick(prefix); if (u) { - if (!u->IsModeSet('o')) + if (!IS_OPER(u)) this->ServerInstance->Users->all_opers.push_back(u); u->modes[UM_OPERATOR] = 1; u->oper.assign(opertype, 0, 512); -- cgit v1.2.3