1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 17:46:38 +02:00

Fix some minor issues discovered whilst working on 2.1.

This commit is contained in:
Sadie Powell
2022-01-03 19:33:21 +00:00
parent 2c18601d8f
commit ba2c82e2f5
5 changed files with 11 additions and 5 deletions
+6 -2
View File
@@ -253,9 +253,13 @@ class MyXMLRPCEvent : public XMLRPCEvent
{
OperType *ot = Config->MyOperTypes[i];
Anope::string perms;
for (std::list<Anope::string>::const_iterator it2 = ot->GetPrivs().begin(), it2_end = ot->GetPrivs().end(); it2 != it2_end; ++it2)
std::list<Anope::string> privs = ot->GetPrivs();
for (std::list<Anope::string>::const_iterator it2 = privs.begin(), it2_end = privs.end(); it2 != it2_end; ++it2)
perms += " " + *it2;
for (std::list<Anope::string>::const_iterator it2 = ot->GetCommands().begin(), it2_end = ot->GetCommands().end(); it2 != it2_end; ++it2)
std::list<Anope::string> commands = ot->GetCommands();
for (std::list<Anope::string>::const_iterator it2 = commands.begin(), it2_end = commands.end(); it2 != it2_end; ++it2)
perms += " " + *it2;
request.reply(ot->GetName(), perms);
}