From 330d9ee9e782a4ed3e2de8ff3082cc5bbe7d6b9e Mon Sep 17 00:00:00 2001 From: rburchell Date: Sun, 15 Feb 2009 17:40:56 +0000 Subject: [PATCH] Add nickcore git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2073 5417fbe8-f217-4b02-8779-1006273d7864 --- src/nickcore.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/nickcore.cpp 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); +}