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 ( const Anope::string n,
User user,
NickCore core,
CommandReply reply,
BotInfo bi 
)

Definition at line 21 of file command.cpp.

Member Function Documentation

AccessGroup CommandSource::AccessFor ( ChannelInfo ci)
NickCore * CommandSource::GetAccount ( )
const Anope::string & CommandSource::GetNick ( ) const
User * CommandSource::GetUser ( )
bool CommandSource::HasCommand ( const Anope::string cmd)
bool CommandSource::HasPriv ( const Anope::string cmd)
bool CommandSource::IsFounder ( ChannelInfo ci)
bool CommandSource::IsOper ( )
bool CommandSource::IsServicesOper ( )

Definition at line 78 of file command.cpp.

References NickCore::IsServicesOper(), User::IsServicesOper(), nc, and u.

Referenced by CommandNSSetEmail::Run().

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(), CommandCSXOP::Execute(), MemoDelCallback::HandleNumber(), CommandCSTopic::Lock(), CommandOSSXLineBase::OnClear(), CommandOSSXLineBase::OnDel(), CommandOSDNS::OnDepool(), NSIdentifyRequest::OnFail(), NSGroupRequest::OnFail(), NSRecoverRequest::OnFail(), CommandNSUpdate::OnHelp(), CommandCSSetChanstats::OnHelp(), CommandBSSetGreet::OnHelp(), CommandCSSetKeepTopic::OnHelp(), CommandBSSetFantasy::OnHelp(), CommandNSSetChanstats::OnHelp(), CommandCSSetAutoOp::OnHelp(), CommandNSSetGreet::OnHelp(), CommandNSSASetChanstats::OnHelp(), CommandBSSetBanExpire::OnHelp(), CommandNSSetPassword::OnHelp(), CommandNSSASetGreet::OnHelp(), CommandCSSetBanType::OnHelp(), CommandBSSetPrivate::OnHelp(), CommandBSSetNoBot::OnHelp(), CommandNSSASetPassword::OnHelp(), CommandNSSetHide::OnHelp(), CommandCSSetPrivate::OnHelp(), CommandNSSetPrivate::OnHelp(), CommandNSSASetHide::OnHelp(), CommandCSSetDescription::OnHelp(), CommandNSSASetPrivate::OnHelp(), CommandNSSetAutoOp::OnHelp(), CommandNSSASetAutoOp::OnHelp(), CommandCSSetFounder::OnHelp(), CommandNSSetDisplay::OnHelp(), CommandCSSetKeepModes::OnHelp(), CommandNSSASetDisplay::OnHelp(), CommandCSSetPeace::OnHelp(), CommandNSSetEmail::OnHelp(), CommandNSSASetEmail::OnHelp(), CommandNSSetKeepModes::OnHelp(), CommandCSSetPersist::OnHelp(), CommandNSSASetKeepModes::OnHelp(), CommandCSSetRestricted::OnHelp(), CommandNSSetKill::OnHelp(), CommandCSSetSecure::OnHelp(), CommandNSSASetKill::OnHelp(), CommandCSSetSecureFounder::OnHelp(), CommandNSSetLanguage::OnHelp(), CommandBSSetDontKickOps::OnHelp(), CommandNSSASetLanguage::OnHelp(), CommandCSSetSecureOps::OnHelp(), CommandBSSetDontKickVoices::OnHelp(), CommandNSSetMessage::OnHelp(), CommandCSSetSignKick::OnHelp(), CommandNSSASetMessage::OnHelp(), CommandCSSetSuccessor::OnHelp(), CommandNSSetSecure::OnHelp(), CommandNSSASetSecure::OnHelp(), CommandCSSetNoexpire::OnHelp(), CommandNSSASetNoexpire::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().

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

Field Documentation

Reference<Channel> CommandSource::c
Anope::string CommandSource::command
Reference<NickCore> CommandSource::nc
Anope::string CommandSource::nick
private

Definition at line 56 of file commands.h.

Referenced by GetNick().

Anope::string CommandSource::permission

Definition at line 71 of file commands.h.

Referenced by Command::Run().

CommandReply* CommandSource::reply

Definition at line 63 of file commands.h.

Referenced by Reply().

Reference<BotInfo> CommandSource::service
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: