1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 11:03:12 +02:00

Set -r on nick change if appropriate and make nick tracking work correctly

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2451 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
adam-
2009-08-15 01:05:52 +00:00
parent b9bf72c457
commit ece55718e7
+8 -1
View File
@@ -730,8 +730,15 @@ User *do_nick(const char *source, const char *nick, const char *username, const
if (!nc_changed)
{
NickAlias *tmpcore = findnick(user->nick);
if (tmpcore)
tmpcore->status |= status;
/* If the new nick isnt registerd or its registerd and not yours */
if (!tmpcore || (old_na && tmpcore->nc != old_na->nc))
{
ircdproto->SendUnregisteredNick(user);
}
}
else
{
@@ -757,7 +764,7 @@ User *do_nick(const char *source, const char *nick, const char *username, const
nc_changed = 0;
}
if (nc_changed || !nick_recognized(user))
if (!ntmp || ntmp->nc != user->nc || nc_changed)
{
if (validate_user(user))
check_memos(user);