Anope IRC Services  Version 2.0
Public Member Functions | Data Fields | Private Attributes
CommandSource Class Reference

#include <commands.h>

Collaboration diagram for CommandSource:
Collaboration graph
[legend]

Public Member Functions

 CommandSource (const Anope::string &n, User *user, NickCore *core, CommandReply *reply, BotInfo *bi)
 
const Anope::stringGetNick () const
 
UserGetUser ()
 
NickCoreGetAccount ()
 
AccessGroup AccessFor (ChannelInfo *ci)
 
bool IsFounder (ChannelInfo *ci)
 
void Reply (const char *message,...)
 
void Reply (const Anope::string &message)
 
bool HasCommand (const Anope::string &cmd)
 
bool HasPriv (const Anope::string &cmd)
 
bool IsServicesOper ()
 
bool IsOper ()
 

Data Fields

Reference< NickCorenc
 
CommandReplyreply
 
Reference< Channelc
 
Reference< BotInfoservice
 
Anope::string command
 
Anope::string permission
 

Private Attributes

Anope::string nick
 
Reference< Useru
 

Detailed Description

Definition at line 53 of file commands.h.

Constructor & Destructor Documentation

◆ CommandSource()

CommandSource::CommandSource ( const Anope::string n,
User user,
NickCore core,
CommandReply reply,
BotInfo bi 
)

Definition at line 21 of file command.cpp.

Member Function Documentation

◆ AccessFor()

AccessGroup CommandSource::AccessFor ( ChannelInfo ci)

◆ GetAccount()

NickCore * CommandSource::GetAccount ( )

◆ GetNick()

const Anope::string & CommandSource::GetNick ( ) const

◆ GetUser()

User * CommandSource::GetUser ( )

◆ HasCommand()

bool CommandSource::HasCommand ( const Anope::string cmd)

◆ HasPriv()

bool CommandSource::HasPriv ( const Anope::string cmd)

◆ IsFounder()

bool CommandSource::IsFounder ( ChannelInfo ci)

◆ IsOper()

bool CommandSource::IsOper ( )

◆ IsServicesOper()

bool CommandSource::IsServicesOper ( )

◆ Reply() [1/2]

void CommandSource::Reply ( const char *  message,
  ... 
)

Definition at line 96 of file command.cpp.

References nc, and Language::Translate().

Referenced by CommandOSDNS::AddIP(), CommandOSDNS::AddServer(), CommandOSDNS::AddZone(), XLineManager::CanAdd(), CommandBSKickBase::CheckArguments(), NSMaxEmail::CheckLimitReached(), CommandOSDNS::DelIP(), CommandOSDNS::DelServer(), CommandOSDNS::DelZone(), CommandOSDNS::DisplayPoolState(), CommandCSAKick::DoAdd(), CommandBSBot::DoAdd(), CommandNSAccess::DoAdd(), CommandOSAKill::DoAdd(), CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandNSAJoin::DoAdd(), CommandEntryMessage::DoAdd(), CommandNSCert::DoAdd(), NewsBase::DoAdd(), CommandOSIgnore::DoAdd(), CommandBSBadwords::DoAdd(), CommandOSException::DoAdd(), CommandCSEnforce::DoBans(), CommandBSBot::DoChange(), CommandOSIgnore::DoClear(), CommandCSFlags::DoClear(), CommandBSBadwords::DoClear(), CommandOSAKill::DoClear(), CommandCSAKick::DoClear(), CommandCSXOP::DoClear(), CommandCSAccess::DoClear(), CommandCSMode::DoClear(), CommandNSAccess::DoDel(), CommandEntryMessage::DoDel(), CommandCSAKick::DoDel(), CommandNSAJoin::DoDel(), CommandNSCert::DoDel(), NewsBase::DoDel(), CommandOSAKill::DoDel(), CommandBSBot::DoDel(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandOSIgnore::DoDel(), CommandOSException::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandMSSet::DoLimit(), CommandCSEnforce::DoLimit(), CommandOSSet::DoList(), CommandNSAccess::DoList(), CommandNSAJoin::DoList(), CommandEntryMessage::DoList(), NewsBase::DoList(), CommandOSSession::DoList(), CommandBSBadwords::DoList(), CommandNSCert::DoList(), CommandOSIgnore::DoList(), CommandCSFlags::DoList(), CommandOSAKill::DoList(), CommandCSAKick::DoList(), CommandCSXOP::DoList(), CommandCSAccess::DoList(), CommandCSLevels::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), CommandOSException::DoMove(), CommandMSSet::DoNotify(), MemoListCallback::DoRead(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), CommandOSSet::DoSetDebug(), CommandOSSet::DoSetNoExpire(), CommandOSSet::DoSetReadOnly(), CommandOSSet::DoSetSuperAdmin(), CommandCSEnforce::DoSSLOnly(), CSStats::DoStats(), CommandOSStats::DoStatsAkill(), CommandOSStats::DoStatsHash(), CommandOSStats::DoStatsReset(), CommandOSStats::DoStatsUplink(), CommandOSStats::DoStatsUptime(), CSTop::DoTop(), CommandOSSession::DoView(), CommandOSAKill::DoView(), CommandCSAKick::DoView(), CommandCSAccess::DoView(), CommandMSDel::Execute(), CommandNSIdentify::Execute(), CommandNSGroup::Execute(), CommandMSRead::Execute(), CommandNSRecover::Execute(), CommandNSUngroup::Execute(), CommandNSGList::Execute(), CommandCSXOP::Execute(), MemoDelCallback::HandleNumber(), CommandCSTopic::Lock(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), CommandOSSXLineBase::OnClear(), CommandOSSXLineBase::OnDel(), CommandOSDNS::OnDepool(), NSIdentifyRequest::OnFail(), NSGroupRequest::OnFail(), NSRecoverRequest::OnFail(), CommandNSIdentify::OnHelp(), CommandMSDel::OnHelp(), CommandMSRead::OnHelp(), CommandNSGroup::OnHelp(), CommandNSRecover::OnHelp(), CommandNSUngroup::OnHelp(), CommandNSGList::OnHelp(), CommandOSAKill::OnHelp(), CommandOSSNLine::OnHelp(), CommandOSSQLine::OnHelp(), CommandOSDNS::OnPool(), Command::OnServHelp(), CommandOSDNS::OnSet(), NSIdentifyRequest::OnSuccess(), NSGroupRequest::OnSuccess(), NSRecoverRequest::OnSuccess(), Command::OnSyntaxError(), CommandBSKickBase::Process(), CommandOSSXLineBase::ProcessList(), CommandCSAKick::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAccess::ProcessList(), CommandOSException::ProcessList(), rsend_notify(), CommandNSSetChanstats::Run(), CommandNSSetGreet::Run(), CommandNSSetMisc::Run(), CommandNSSetHide::Run(), Command::Run(), CommandNSSetPrivate::Run(), CommandNSSetAutoOp::Run(), CommandNSSetDisplay::Run(), CommandNSSetEmail::Run(), CommandNSSetKeepModes::Run(), CommandNSSetKill::Run(), CommandNSSetLanguage::Run(), CommandNSSetMessage::Run(), CommandNSSetSecure::Run(), CommandOSDefcon::SendLevels(), Command::SendSyntax(), CommandSeen::SimpleSeen(), CommandCSTopic::Unlock(), AkillDelCallback::~AkillDelCallback(), BadwordsDelCallback::~BadwordsDelCallback(), ExceptionDelCallback::~ExceptionDelCallback(), and SXLineDelCallback::~SXLineDelCallback().

◆ Reply() [2/2]

void CommandSource::Reply ( const Anope::string message)

Field Documentation

◆ c

Reference<Channel> CommandSource::c

◆ command

Anope::string CommandSource::command

◆ nc

Reference<NickCore> CommandSource::nc

◆ nick

Anope::string CommandSource::nick
private

Definition at line 56 of file commands.h.

Referenced by GetNick().

◆ permission

Anope::string CommandSource::permission

Definition at line 71 of file commands.h.

Referenced by Command::Run().

◆ reply

CommandReply* CommandSource::reply

Definition at line 63 of file commands.h.

Referenced by Reply().

◆ service

Reference<BotInfo> CommandSource::service

◆ u

Reference<User> CommandSource::u
private

Definition at line 58 of file commands.h.

Referenced by AccessFor(), GetUser(), HasCommand(), HasPriv(), IsFounder(), IsOper(), and IsServicesOper().


The documentation for this class was generated from the following files: