diff options
author | Adam <Adam@anope.org> | 2012-10-09 05:22:02 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-09 05:22:02 -0400 |
commit | 8f5d786f0eaec17dd2cb60f3dfb434caabf48e92 (patch) | |
tree | 5bc42eaee77104af3169d321eae8730c5e13ee03 /modules/commands/ns_ghost.cpp | |
parent | 1dacc648a0ddc20679b6242bc94edb9ae657a247 (diff) |
Cleanup ok if modules with pending identify requests are unloaded
Diffstat (limited to 'modules/commands/ns_ghost.cpp')
-rw-r--r-- | modules/commands/ns_ghost.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/ns_ghost.cpp b/modules/commands/ns_ghost.cpp index 9b48a43d1..53082e0a4 100644 --- a/modules/commands/ns_ghost.cpp +++ b/modules/commands/ns_ghost.cpp @@ -19,7 +19,7 @@ class NSGhostRequest : public IdentifyRequest Command *cmd; public: - NSGhostRequest(CommandSource &src, Command *c, const Anope::string &user, const Anope::string &pass) : IdentifyRequest(user, pass), source(src), cmd(c) { } + NSGhostRequest(Module *o, CommandSource &src, Command *c, const Anope::string &user, const Anope::string &pass) : IdentifyRequest(o, user, pass), source(src), cmd(c) { } void OnSuccess() anope_override { @@ -90,13 +90,13 @@ class CommandNSGhost : public Command if (ok == false && !pass.empty()) { - NSGhostRequest *req = new NSGhostRequest(source, this, na->nc->display, pass); + NSGhostRequest *req = new NSGhostRequest(owner, source, this, na->nc->display, pass); FOREACH_MOD(I_OnCheckAuthentication, OnCheckAuthentication(source.GetUser(), req)); req->Dispatch(); } else { - NSGhostRequest req(source, this, na->nc->display, pass); + NSGhostRequest req(owner, source, this, na->nc->display, pass); if (ok) req.OnSuccess(); |