summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 17:55:55 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 17:55:55 +0000
commitb2b0e1d235686ff8389d2930a53366abefd1bb9d (patch)
tree262a47642e64f91d8a240dad7d281cd205e13b50 /src/core
parent5384c97c141c9b3acfecb154b8bd41e57f706e00 (diff)
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_register.c2
2 files changed, 2 insertions, 2 deletions
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);