1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 00:26:38 +02:00

Fixed saset noexpire to set noexpire on the nick it is used on not just the display name

This commit is contained in:
Adam
2010-10-13 14:33:27 -04:00
parent c4075c032e
commit 5e9db23883
11 changed files with 49 additions and 37 deletions
+4 -3
View File
@@ -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)