diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-15 17:55:55 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-15 17:55:55 +0000 |
| commit | b2b0e1d235686ff8389d2930a53366abefd1bb9d (patch) | |
| tree | 262a47642e64f91d8a240dad7d281cd205e13b50 /src/core | |
| parent | 5384c97c141c9b3acfecb154b8bd41e57f706e00 (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.c | 2 | ||||
| -rw-r--r-- | src/core/ns_register.c | 2 |
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); |
