summaryrefslogtreecommitdiff
path: root/src/nickcore.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 20:06:21 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 20:06:21 +0000
commit458be36a321615c0f3004a6abde7e14d40f5da32 (patch)
tree711be83fc6f2d49f9d31015db51730cdac57f687 /src/nickcore.cpp
parent38ad96c57c520dd84c8de21766f5de082a844a99 (diff)
Rewrote all of the old C style flag systems into a new Flag class which everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickcore.cpp')
-rw-r--r--src/nickcore.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp
index f195c233a..f772b0732 100644
--- a/src/nickcore.cpp
+++ b/src/nickcore.cpp
@@ -7,9 +7,14 @@ NickCore::NickCore()
display = email = greet = url = NULL;
ot = NULL;
pass[0] = '\0';
- icq = flags = 0;
+ icq = 0;
language = channelcount = 0;
lastmail = 0;
+
+ /* Set default nick core flags */
+ for (size_t t = NI_BEGIN + 1; t != NI_END; ++t)
+ if (NSDefFlags.HasFlag((NickCoreFlag)t))
+ SetFlag((NickCoreFlag)t);
}
bool NickCore::HasCommand(const std::string &cmdstr) const