1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 15:43:15 +02:00

Rewrote some of the opertype system, added os_login

This commit is contained in:
Adam
2011-03-14 13:52:26 -04:00
parent 4fe49af840
commit ed73d76751
65 changed files with 393 additions and 201 deletions
+6 -6
View File
@@ -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());
}
}