diff options
author | Adam <Adam@anope.org> | 2012-09-15 10:11:31 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-09-30 20:30:27 -0400 |
commit | 9ba719688161499f01c168b1aed84a563bcb5953 (patch) | |
tree | b2ffbe3ceebf2a32820780fb76d30967af8ea50c /modules/commands/ns_recover.cpp | |
parent | 1e71303ffaf263adb0cc659505caa223f7f27b85 (diff) |
Make CommandSource use references, sometimes we hold them for awhile
Diffstat (limited to 'modules/commands/ns_recover.cpp')
-rw-r--r-- | modules/commands/ns_recover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp index b74703a48..7c5b6cbeb 100644 --- a/modules/commands/ns_recover.cpp +++ b/modules/commands/ns_recover.cpp @@ -82,7 +82,7 @@ class CommandNSRecover : public Command else { bool ok = false; - if (source.nc == na->nc) + if (source.GetAccount() == na->nc) ok = true; else if (!na->nc->HasFlag(NI_SECURE) && source.GetUser() && is_on_access(source.GetUser(), na->nc)) ok = true; |