diff options
| author | Adam <Adam@anope.org> | 2016-11-11 12:58:14 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-11-11 12:58:14 -0500 |
| commit | ef5b6919e3508cc9d4c722285d9d56f5a275f650 (patch) | |
| tree | 56497f0a4f5d1847bae511c72bdb2d3581df58ef /modules/operserv/login.cpp | |
| parent | 8dd6e3195ed7600e39935e887df2626215733dfb (diff) | |
Fix opers not really being serializable
Diffstat (limited to 'modules/operserv/login.cpp')
| -rw-r--r-- | modules/operserv/login.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/operserv/login.cpp b/modules/operserv/login.cpp index 180024eac..270958875 100644 --- a/modules/operserv/login.cpp +++ b/modules/operserv/login.cpp @@ -33,7 +33,7 @@ class CommandOSLogin : public Command const Anope::string &password = params[0]; User *u = source.GetUser(); - Oper *o = source.nc->o; + Oper *o = source.nc->GetOper(); if (o == NULL) { source.Reply(_("No oper block for your nickname.")); @@ -87,7 +87,7 @@ class CommandOSLogout : public Command void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override { User *u = source.GetUser(); - Oper *o = source.nc->o; + Oper *o = source.nc->GetOper(); if (o == NULL) { source.Reply(_("No oper block for your nick.")); @@ -142,7 +142,7 @@ class OSLogin : public Module EventReturn IsServicesOper(User *u) override { - if (!u->Account()->o->GetPassword().empty()) + if (!u->Account()->GetOper()->GetPassword().empty()) { if (os_login.HasExt(u)) return EVENT_ALLOW; |
