diff options
author | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-15 18:31:56 +0000 |
---|---|---|
committer | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-15 18:31:56 +0000 |
commit | 0a1476a05f4431ac2d0f1aaac244577e74f8875d (patch) | |
tree | 4b457902db8f5fde716f2afda50b6217d8404dbe /src/modules/m_spanningtree | |
parent | b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef (diff) |
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/opertype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string> &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); |