From b2b0e1d235686ff8389d2930a53366abefd1bb9d Mon Sep 17 00:00:00 2001 From: rburchell Date: Sat, 15 Nov 2008 17:55:55 +0000 Subject: Create and use constructors for NickInfo, NickAlias, ChannelInfo. Inherit all three from Extensible. Convert to use that instead of moduleData stuff. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1705 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_forbid.c | 2 +- src/core/ns_register.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c index cc3ed5b90..7783024fb 100644 --- a/src/core/ns_forbid.c +++ b/src/core/ns_forbid.c @@ -125,7 +125,7 @@ NickAlias *makenick(const char *nick) NickCore *nc; /* First make the core */ - nc = (NickCore *)scalloc(1, sizeof(NickCore)); + nc = new NickCore(); nc->display = sstrdup(nick); slist_init(&nc->aliases); insert_core(nc); diff --git a/src/core/ns_register.c b/src/core/ns_register.c index 0a0e073ac..780101b98 100644 --- a/src/core/ns_register.c +++ b/src/core/ns_register.c @@ -405,7 +405,7 @@ NickAlias *makenick(const char *nick) NickCore *nc; /* First make the core */ - nc = (NickCore *)scalloc(1, sizeof(NickCore)); + nc = new NickCore(); nc->display = sstrdup(nick); slist_init(&nc->aliases); insert_core(nc); -- cgit