diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:55 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-15 15:21:55 +0000 |
commit | 855847f428412e85087384df73096d9056526937 (patch) | |
tree | bdc7063da264e2f433e5c7ffa7bafc4a53559994 /src/account.cpp | |
parent | f07229a9ee06bd989efd14f4223e787b90f9148e (diff) |
Shuffle shit around.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2062 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/account.cpp')
-rw-r--r-- | src/account.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/account.cpp b/src/account.cpp new file mode 100644 index 000000000..b33646bbe --- /dev/null +++ b/src/account.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)
+{
+ if (!this->ot)
+ {
+ // No opertype.
+ return false;
+ }
+
+ return this->ot->HasCommand(cmdstr);
+}
+
+bool NickCore::HasPriv(const std::string &privstr)
+{
+ if (!this->ot)
+ {
+ // No opertype.
+ return false;
+ }
+
+ return this->ot->HasPriv(privstr);
+}
|