mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Comment on what looks like incorrect behaviour in User::Oper().
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11477 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
9c5fa4bd60
commit
cdb8a029dc
@ -758,6 +758,13 @@ void User::Oper(const std::string &opertype, const std::string &opername)
|
||||
this->oper.assign(opertype, 0, 512);
|
||||
ServerInstance->Users->all_opers.push_back(this);
|
||||
|
||||
/*
|
||||
* This might look like it's in the wrong place.
|
||||
* It is *not*!
|
||||
*
|
||||
* For multi-network servers, we may not have the opertypes of the remote server, but we still want to mark the user as an oper of that type.
|
||||
* -- w00t
|
||||
*/
|
||||
opertype_t::iterator iter_opertype = ServerInstance->Config->opertypes.find(this->oper.c_str());
|
||||
if (iter_opertype != ServerInstance->Config->opertypes.end())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user