1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 17:36:37 +02:00

Cleanup ok if modules with pending identify requests are unloaded

This commit is contained in:
Adam
2012-10-09 05:22:02 -04:00
parent 1dacc648a0
commit 8f5d786f0e
11 changed files with 32 additions and 20 deletions
+3 -1
View File
@@ -95,7 +95,7 @@ void change_core_display(NickCore *nc)
std::set<IdentifyRequest *> IdentifyRequest::requests;
IdentifyRequest::IdentifyRequest(const Anope::string &acc, const Anope::string &pass) : account(acc), password(pass), dispatched(false), success(false)
IdentifyRequest::IdentifyRequest(Module *o, const Anope::string &acc, const Anope::string &pass) : owner(o), account(acc), password(pass), dispatched(false), success(false)
{
requests.insert(this);
}
@@ -150,5 +150,7 @@ void IdentifyRequest::ModuleUnload(Module *m)
++it;
ir->Release(m);
if (ir->owner == m)
delete ir;
}
}