From c037e6a6e9f71f7209cda0342dcb0e9c332b6804 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:09 +0000 Subject: Move delete_user() into a destructor. Fix a few minor bugs with conversion also. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1194 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 2 -- include/users.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index fb3894c04..85acc59a5 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1131,8 +1131,6 @@ E int32 usercnt, opcnt; E uint32 maxusercnt; E time_t maxusertime; -E void delete_user(User *user); - E void get_user_stats(long *nusers, long *memuse); E User *finduser(const char *nick); E User *firstuser(void); diff --git a/include/users.h b/include/users.h index 95b2dc81c..fcf01e004 100644 --- a/include/users.h +++ b/include/users.h @@ -69,6 +69,10 @@ class User */ User(const std::string &nick); + /** Destroy a user. + */ + ~User(); + /** Update the nickname of a user record accordingly, should be * called from ircd protocol. */ -- cgit