From ea45d96968702b67867ae5c83e867aaee558d47a Mon Sep 17 00:00:00 2001 From: rburchell Date: Mon, 16 Feb 2009 18:58:44 +0000 Subject: [PATCH] If you use finduser(), and then use the result, it helps if you actually finduser() to a pointer to save the result, doh. Thanks to DP! git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2096 5417fbe8-f217-4b02-8779-1006273d7864 --- src/nickserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nickserv.c b/src/nickserv.c index e1fe3fae9..a9d2d8e3a 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -1111,7 +1111,7 @@ int delnick(NickAlias * na) /* Second thing to do: look for an user using the alias * being deleted, and make appropriate changes */ - if (finduser(na->nick)) + if (u = finduser(na->nick)) { if (ircd->modeonunreg) common_svsmode(finduser(na->nick), ircd->modeonunreg, "1");