summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:09 +0000
commitc037e6a6e9f71f7209cda0342dcb0e9c332b6804 (patch)
treec9a61e1b0ce56369690949a751cdfc0b56ab9c9f /include
parent253d5824c400ae77e728f7e4a1b3cede80414545 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/extern.h2
-rw-r--r--include/users.h4
2 files changed, 4 insertions, 2 deletions
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.
*/