mirror of
https://github.com/anope/anope.git
synced 2026-06-30 06:36:38 +02:00
Cleanup ok if modules with pending identify requests are unloaded
This commit is contained in:
@@ -19,7 +19,7 @@ class NSIdentifyRequest : public IdentifyRequest
|
||||
Command *cmd;
|
||||
|
||||
public:
|
||||
NSIdentifyRequest(CommandSource &s, Command *c, const Anope::string &acc, const Anope::string &pass) : IdentifyRequest(acc, pass), source(s), cmd(c) { }
|
||||
NSIdentifyRequest(Module *o, CommandSource &s, Command *c, const Anope::string &acc, const Anope::string &pass) : IdentifyRequest(o, acc, pass), source(s), cmd(c) { }
|
||||
|
||||
void OnSuccess() anope_override
|
||||
{
|
||||
@@ -81,7 +81,7 @@ class CommandNSIdentify : public Command
|
||||
source.Reply(_("You are already identified."));
|
||||
else
|
||||
{
|
||||
NSIdentifyRequest *req = new NSIdentifyRequest(source, this, na ? na->nc->display : nick, pass);
|
||||
NSIdentifyRequest *req = new NSIdentifyRequest(owner, source, this, na ? na->nc->display : nick, pass);
|
||||
FOREACH_MOD(I_OnCheckAuthentication, OnCheckAuthentication(source.GetUser(), req));
|
||||
req->Dispatch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user