mirror of
https://github.com/anope/anope.git
synced 2026-07-08 11:03:14 +02:00
Remove duplicate debug notice.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1192 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+19
-27
@@ -135,6 +135,25 @@ void User::SetIdent(const std::string &ident)
|
||||
update_host(this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void change_user_realname(User * user, const char *realname)
|
||||
{
|
||||
if (user->realname)
|
||||
free(user->realname);
|
||||
user->realname = sstrdup(realname);
|
||||
|
||||
if (user->na && (nick_identified(user)
|
||||
|| (!(user->na->nc->flags & NI_SECURE)
|
||||
&& nick_recognized(user)))) {
|
||||
if (user->na->last_realname)
|
||||
free(user->na->last_realname);
|
||||
user->na->last_realname = sstrdup(realname);
|
||||
}
|
||||
|
||||
if (debug)
|
||||
alog("debug: %s changes its realname to %s", user->nick, realname);
|
||||
}
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
|
||||
@@ -156,33 +175,6 @@ void update_host(User * user)
|
||||
sprintf(user->na->last_usermask, "%s@%s", common_get_vident(user),
|
||||
common_get_vhost(user));
|
||||
}
|
||||
|
||||
if (debug)
|
||||
alog("debug: %s changes its host to %s", user->nick,
|
||||
common_get_vhost(user));
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/* Change the realname of a user. */
|
||||
|
||||
void change_user_realname(User * user, const char *realname)
|
||||
{
|
||||
if (user->realname)
|
||||
free(user->realname);
|
||||
user->realname = sstrdup(realname);
|
||||
|
||||
if (user->na && (nick_identified(user)
|
||||
|| (!(user->na->nc->flags & NI_SECURE)
|
||||
&& nick_recognized(user)))) {
|
||||
if (user->na->last_realname)
|
||||
free(user->na->last_realname);
|
||||
user->na->last_realname = sstrdup(realname);
|
||||
}
|
||||
|
||||
if (debug)
|
||||
alog("debug: %s changes its realname to %s", user->nick, realname);
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user