+ ConfigTag* tag = ServerInstance->Config->ConfValue("power");
+
+ // The hash method for *BOTH* the die and restart passwords
+ powerhash = tag->getString("hash");
+
+ cmddie.password = tag->getString("diepass", ServerInstance->Config->ServerName, 1);
+ cmdrestart.password = tag->getString("restartpass", ServerInstance->Config->ServerName, 1);
+
+ ConfigTag* security = ServerInstance->Config->ConfValue("security");
+ cmdkill.hidenick = security->getString("hidekills");
+ cmdkill.hideuline = security->getBool("hideulinekills");
+ }
+
+ void OnPostOper(User* user, const std::string&, const std::string&) CXX11_OVERRIDE
+ {
+ LocalUser* luser = IS_LOCAL(user);
+ if (!luser)
+ return;
+
+ const std::string vhost = luser->oper->getConfig("vhost");
+ if (!vhost.empty())
+ luser->ChangeDisplayedHost(vhost);
+
+ const std::string klass = luser->oper->getConfig("class");
+ if (!klass.empty())
+ luser->SetClass(klass);