diff options
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/ns_set_misc.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/extra/ns_set_misc.cpp b/modules/extra/ns_set_misc.cpp index 8829f86b2..af2175e81 100644 --- a/modules/extra/ns_set_misc.cpp +++ b/modules/extra/ns_set_misc.cpp @@ -21,9 +21,10 @@ class CommandNSSetMisc : public Command protected: CommandReturn RealExecute(User *u, const std::vector<Anope::string> ¶ms) { - NickCore *nc = findcore(params[0]); - if (!nc) - throw CoreException("NULL nc in CommandNSSetMisc"); + NickAlias *na = findnick(params[0]); + if (!na) + throw CoreException("NULL na in CommandNSSetMisc"); + NickCore *nc = na->nc; nc->Shrink("nickserv:" + this->name); if (params.size() > 1) |
