diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-20 18:39:52 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-20 18:39:52 +0000 |
commit | 7a7f1f8390f68f84350de63ff330184999264fcc (patch) | |
tree | 3990cde97ba0cd53db38114de9e4412b24930dd6 /src/users.c | |
parent | 861fe9e7b32c8e1e523cc774547e460c9ed67289 (diff) |
Rewrote part of extensible, it will now automatically unallocate memory for us so we don't have to manually delete it everywhere anymore
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2711 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r-- | src/users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c index 5783dfb56..1a02e5344 100644 --- a/src/users.c +++ b/src/users.c @@ -341,12 +341,12 @@ void User::SendMessage(const char *source, const std::string &msg) */ void User::CheckAuthenticationToken(const char *svid) { - const char *c = NULL; + char *c; NickAlias *na; if ((na = findnick(this->nick))) { - if (na->nc && na->nc->GetExt("authenticationtoken", c)) + if (na->nc && na->nc->GetExtArray("authenticationtoken", c)) { if (svid && c && !strcmp(svid, c)) { |