diff options
author | Adam <Adam@anope.org> | 2011-03-14 13:52:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-14 13:52:26 -0400 |
commit | ed73d7675152ccc66f20daedca8586a8de254a84 (patch) | |
tree | 18f7a1a53a717f24d061550c6670ca6f0ed54f9f /modules/core/os_staff.cpp | |
parent | 4fe49af8401b956249d924b89b3e69bce5fb6744 (diff) |
Rewrote some of the opertype system, added os_login
Diffstat (limited to 'modules/core/os_staff.cpp')
-rw-r--r-- | modules/core/os_staff.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/os_staff.cpp b/modules/core/os_staff.cpp index 7e8a4f86d..f2dbc7613 100644 --- a/modules/core/os_staff.cpp +++ b/modules/core/os_staff.cpp @@ -25,11 +25,11 @@ class CommandOSStaff : public Command { source.Reply(_("On Level Nick")); - for (std::list<std::pair<Anope::string, Anope::string> >::iterator it = Config->Opers.begin(), it_end = Config->Opers.end(); it != it_end; ++it) + for (unsigned i = 0; i < Config->Opers.size(); ++i) { - Anope::string nick = it->first, type = it->second; + Oper *o = Config->Opers[i]; - NickAlias *na = findnick(nick); + NickAlias *na = findnick(o->name); if (na) { NickCore *nc = na->nc; @@ -38,12 +38,12 @@ class CommandOSStaff : public Command User *u2 = *uit; if (na->nick.equals_ci(u2->nick)) - source.Reply(_(" %c %s %s"), '*', type.c_str(), u2->nick.c_str()); + source.Reply(_(" %c %s %s"), '*', o->ot->GetName().c_str(), u2->nick.c_str()); else - source.Reply(_(" %c %s %s [%s]"), '*', type.c_str(), na->nick.c_str(), u2->nick.c_str()); + source.Reply(_(" %c %s %s [%s]"), '*', o->ot->GetName().c_str(), na->nick.c_str(), u2->nick.c_str()); } if (nc->Users.empty()) - source.Reply(_(" %c %s %s"), ' ', type.c_str(), na->nick.c_str()); + source.Reply(_(" %c %s %s"), ' ', o->ot->GetName().c_str(), na->nick.c_str()); } } |