diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-22 02:31:23 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-22 02:31:23 +0000 |
| commit | fb5d7d181578bcba25327dfd4c2d5727fa71ce33 (patch) | |
| tree | fafebdfc364d887136587397d01d7431afc2a77a /include | |
| parent | 16e667a2cecf9492954333fc7949b6636072f941 (diff) | |
Properly initialized new objects when needed so they don't contain garbage data.
Also, converted line endings in os_ignore_db from CR+LF to LF.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1784 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/account.h | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/include/account.h b/include/account.h index 7ddc89e8e..0217753ad 100644 --- a/include/account.h +++ b/include/account.h @@ -6,6 +6,13 @@ class NickRequest { public: + NickRequest() + { + next = prev = NULL; + nick = passcode = email = NULL; + *password = 0; + requested = lastmail = 0; + } NickRequest *next, *prev; char *nick; char *passcode; @@ -20,16 +27,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 = 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 */ @@ -47,16 +54,16 @@ class NickAlias class NickCore : public Extensible { public: - NickCore() - { + NickCore() + { next = prev = NULL; display = email = greet = url = NULL; pass[0] = '\0'; icq = flags = 0; language = accesscount = channelcount = 0; - lastmail = 0; - } - + lastmail = 0; + } + NickCore *next, *prev; char *display; /* How the nick is displayed */ |
