summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 17:40:56 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 17:40:56 +0000
commit330d9ee9e782a4ed3e2de8ff3082cc5bbe7d6b9e (patch)
tree942f9b9581c70ba1f488d2b94f4c163fd0f21a7b
parentd84701deec34eed58057026ea63a96c9dc0f5a2b (diff)
Add nickcore
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2073 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/nickcore.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp
new file mode 100644
index 000000000..af4680f45
--- /dev/null
+++ b/src/nickcore.cpp
@@ -0,0 +1,34 @@
+#include "services.h"
+
+NickCore::NickCore()
+{
+ next = prev = NULL;
+ display = email = greet = url = NULL;
+ ot = NULL;
+ pass[0] = '\0';
+ icq = flags = 0;
+ language = accesscount = channelcount = 0;
+ lastmail = 0;
+}
+
+bool NickCore::HasCommand(const std::string &cmdstr) const
+{
+ if (!this->ot)
+ {
+ // No opertype.
+ return false;
+ }
+
+ return this->ot->HasCommand(cmdstr);
+}
+
+bool NickCore::HasPriv(const std::string &privstr) const
+{
+ if (!this->ot)
+ {
+ // No opertype.
+ return false;
+ }
+
+ return this->ot->HasPriv(privstr);
+}