summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
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())
{