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_group.cpp | |
| parent | 1dacc648a0ddc20679b6242bc94edb9ae657a247 (diff) | |
Cleanup ok if modules with pending identify requests are unloaded
Diffstat (limited to 'modules/commands/ns_group.cpp')
| -rw-r--r-- | modules/commands/ns_group.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp index 30026c109..58251d76d 100644 --- a/modules/commands/ns_group.cpp +++ b/modules/commands/ns_group.cpp @@ -21,7 +21,7 @@ class NSGroupRequest : public IdentifyRequest dynamic_reference<NickAlias> target; public: - NSGroupRequest(CommandSource &src, Command *c, const Anope::string &n, NickAlias *targ, const Anope::string &pass) : IdentifyRequest(targ->nc->display, pass), source(src), cmd(c), nick(n), target(targ) { } + NSGroupRequest(Module *o, CommandSource &src, Command *c, const Anope::string &n, NickAlias *targ, const Anope::string &pass) : IdentifyRequest(o, targ->nc->display, pass), source(src), cmd(c), nick(n), target(targ) { } void OnSuccess() anope_override { @@ -146,13 +146,13 @@ class CommandNSGroup : public Command if (ok == false && !pass.empty()) { - NSGroupRequest *req = new NSGroupRequest(source, this, u->nick, target, pass); + NSGroupRequest *req = new NSGroupRequest(owner, source, this, u->nick, target, pass); FOREACH_MOD(I_OnCheckAuthentication, OnCheckAuthentication(source.GetUser(), req)); req->Dispatch(); } else { - NSGroupRequest req(source, this, u->nick, target, pass); + NSGroupRequest req(owner, source, this, u->nick, target, pass); if (ok) req.OnSuccess(); |
