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/nickserv.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/nickserv.c')
| -rw-r--r-- | src/nickserv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nickserv.c b/src/nickserv.c index 428f0d242..0bf328151 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -529,9 +529,9 @@ int validate_user(User * u) na->last_seen = time(NULL); if (na->last_usermask) delete [] na->last_usermask; - na->last_usermask = new char[strlen(common_get_vident(u)) + strlen(common_get_vhost(u)) + 2]; - sprintf(na->last_usermask, "%s@%s", common_get_vident(u), - common_get_vhost(u)); + na->last_usermask = new char[u->GetIdent().length() + u->GetDisplayedHost().length() + 2]; + sprintf(na->last_usermask, "%s@%s", u->GetIdent().c_str(), + u->GetDisplayedHost().c_str()); if (na->last_realname) delete [] na->last_realname; na->last_realname = sstrdup(u->realname); @@ -795,12 +795,12 @@ int is_on_access(User * u, NickCore * nc) if (nc->accesscount == 0) return 0; - buf = new char[strlen(u->username) + strlen(u->host) + 2]; - sprintf(buf, "%s@%s", u->username, u->host); + buf = new char[u->GetIdent().length() + strlen(u->host) + 2]; + sprintf(buf, "%s@%s", u->GetIdent().c_str(), u->host); if (ircd->vhost) { if (u->vhost) { - buf2 = new char[strlen(u->username) + strlen(u->vhost) + 2]; - sprintf(buf2, "%s@%s", u->username, u->vhost); + buf2 = new char[u->GetIdent().length() + strlen(u->vhost) + 2]; + sprintf(buf2, "%s@%s", u->GetIdent().c_str(), u->vhost); } } |
