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 /include/account.h | |
| 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 'include/account.h')
| -rw-r--r-- | include/account.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/include/account.h b/include/account.h index 13d3ca517..7ddc89e8e 100644 --- a/include/account.h +++ b/include/account.h @@ -20,6 +20,16 @@ class NickCore; class NickAlias { public: + NickAlias() + { + next = prev = NULL; + nick = last_quit = last_realname = last_usermask = NULL; + time_registered = last_seen = 0; + status = 0; + nc = NULL; + u = NULL; + } + NickAlias *next, *prev; char *nick; /* Nickname */ char *last_quit; /* Last quit message */ @@ -31,13 +41,22 @@ class NickAlias NickCore *nc; /* I'm an alias of this */ /* Not saved */ - ModuleData *moduleData; /* Module saved data attached to the nick alias */ User *u; /* Current online user that has me */ }; -class NickCore +class NickCore : public Extensible { public: + NickCore() + { + next = prev = NULL; + display = email = greet = url = NULL; + pass[0] = '\0'; + icq = flags = 0; + language = accesscount = channelcount = 0; + lastmail = 0; + } + NickCore *next, *prev; char *display; /* How the nick is displayed */ @@ -54,7 +73,6 @@ class NickCore uint16 channelcount; /* Number of channels currently registered */ /* Unsaved data */ - ModuleData *moduleData; /* Module saved data attached to the NickCore */ time_t lastmail; /* Last time this nick record got a mail */ SList aliases; /* List of aliases */ }; |
