summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+}