summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-13 14:33:27 -0400
committerAdam <Adam@anope.org>2010-10-13 14:33:27 -0400
commit5e9db23883c849077eb48d2b2176163a077f09d4 (patch)
tree07a03e4d815e66b6730a31b9725ff9ac5c56dff0 /modules/extra
parentc4075c032e0cfd0e22faaa318182c2c04cf45c6e (diff)
Fixed saset noexpire to set noexpire on the nick it is used on not just the display name
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/ns_set_misc.cpp7
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> &params)
{
- 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)