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:
+8
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user