diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
commit | 726b74f3555c3b7def554f293cf7d6d12a3a3393 (patch) | |
tree | be37e374dcaad4639fda93661f9045f7975d3c67 /src | |
parent | 7ae320eaa2078bd1c4cdf061f3bcd2bd7e22f53a (diff) |
Remove duplicate debug notice.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1192 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/users.c | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/src/users.c b/src/users.c index af9bbbd95..83a337e38 100644 --- a/src/users.c +++ b/src/users.c @@ -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); } /*************************************************************************/ |