diff options
author | Adam <Adam@anope.org> | 2012-10-13 00:32:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-13 00:37:10 -0400 |
commit | 4424abd15d32c819ca22a7c49c4380895527e337 (patch) | |
tree | d34c183bdd9244afca9c8de3730c3b3d5ed8105a /src/users.cpp | |
parent | 76a0471c291d2b8045b52ec8e9d683a38bff47ff (diff) |
Add m_sql_oper
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 603c22745..28b2c413c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -431,6 +431,9 @@ void User::Identify(NickAlias *na) this->SetModes(bi, "%s", this->nc->o->ot->modes.c_str()); if (bi != NULL) this->SendMessage(bi, "Changing your usermodes to \002%s\002", this->nc->o->ot->modes.c_str()); + UserMode *um = ModeManager::FindUserModeByName(UMODE_OPER); + if (um && !this->HasMode(UMODE_OPER) && this->nc->o->ot->modes.find(um->ModeChar) != Anope::string::npos) + ircdproto->SendOper(this); } if (ircdproto->CanSetVHost && !this->nc->o->vhost.empty()) { |