mirror of
https://github.com/anope/anope.git
synced 2026-06-26 08:36:39 +02:00
330d9ee9e7
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2073 5417fbe8-f217-4b02-8779-1006273d7864
35 lines
562 B
C++
35 lines
562 B
C++
#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);
|
|
}
|