summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 18:58:44 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 18:58:44 +0000
commitea45d96968702b67867ae5c83e867aaee558d47a (patch)
tree3982f72cf7423b508d4acf18ea7577ace030bffb /src
parent771eb5cf1f73c7807c861ad4c70da97d6610d326 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/nickserv.c2
1 files changed, 1 insertions, 1 deletions
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");