diff options
| author | 2019-02-05 02:22:26 +0000 | |
|---|---|---|
| committer | 2019-02-05 02:22:26 +0000 | |
| commit | 6a95b42e11bae7a3385c3d03819e29bb64f00191 (patch) | |
| tree | cbf4e3f52b2bc94f58bf82dc41487203d5cd82c9 /src/users.cpp | |
| parent | ModuleManager: use std::flush instead of fflush(stdout). (diff) | |
| download | inspircd++-6a95b42e11bae7a3385c3d03819e29bb64f00191.tar.gz inspircd++-6a95b42e11bae7a3385c3d03819e29bb64f00191.tar.bz2 inspircd++-6a95b42e11bae7a3385c3d03819e29bb64f00191.zip | |
Move <oper:class> and <oper:vhost> to core_oper.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/users.cpp b/src/users.cpp index b00992141..582abe17e 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -377,17 +377,6 @@ void User::Oper(OperInfo* info) if (info->oper_block) opername = info->oper_block->getString("name"); - if (IS_LOCAL(this)) - { - LocalUser* l = IS_LOCAL(this); - std::string vhost = oper->getConfig("vhost"); - if (!vhost.empty()) - l->ChangeDisplayedHost(vhost); - std::string opClass = oper->getConfig("class"); - if (!opClass.empty()) - l->SetClass(opClass); - } - ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')", nick.c_str(), ident.c_str(), GetRealHost().c_str(), oper->name.c_str(), opername.c_str()); this->WriteNumeric(RPL_YOUAREOPER, InspIRCd::Format("You are now %s %s", strchr("aeiouAEIOU", oper->name[0]) ? "an" : "a", oper->name.c_str())); |
