diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
| commit | d7d01bdc5c667a1fafd95241282b58e03b4caa5b (patch) | |
| tree | f1482d8734da609923c6d8af6bc8fcb0fc187534 /src/hostserv.c | |
| parent | d49b3a25fda5f597491e73640dd1e76babc240eb (diff) | |
Squashed commit: merge next (1.9.1) back to trunk.
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/hostserv.c')
| -rw-r--r-- | src/hostserv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index 314e8f4e2..07bf7c976 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -506,7 +506,7 @@ int do_on_id(User * u) } if (ircd->vident) { if (vIdent) - u->vident = sstrdup(vIdent); + u->SetVIdent(vIdent); } set_lastmask(u); } @@ -552,8 +552,7 @@ void set_lastmask(User * u) if (u->na->last_usermask) delete [] u->na->last_usermask; - u->na->last_usermask = new char[strlen(common_get_vident(u)) + strlen(common_get_vhost(u)) + 2]; - sprintf(u->na->last_usermask, "%s@%s", common_get_vident(u), - common_get_vhost(u)); + u->na->last_usermask = new char[u->GetIdent().length() + u->GetDisplayedHost().length() + 2]; + sprintf(u->na->last_usermask, "%s@%s", u->GetIdent().c_str(), u->GetDisplayedHost().c_str()); } |
