The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

RemoveBase Class Reference

Base class for /FPART and /REMOVE. More...

Inheritance diagram for RemoveBase:

Inheritance graph
[legend]
Collaboration diagram for RemoveBase:

Collaboration graph
[legend]
List of all members.

Protected Types

enum  ModeLevel {
  PEON = 0, HALFOP = 1, OP = 2, ADMIN = 3,
  OWNER = 4, ULINE = 5
}

Protected Member Functions

 RemoveBase (InspIRCd *Instance, bool &snk)
ModeLevel chartolevel (const std::string &privs)
CmdResult Handle (const std::vector< std::string > &parameters, User *user, bool neworder)

Private Attributes

bool & supportnokicks
InspIRCdServerInstance

Detailed Description

Base class for /FPART and /REMOVE.

Definition at line 26 of file m_remove.cpp.


Member Enumeration Documentation

enum RemoveBase::ModeLevel [protected]
 

Enumerator:
PEON 
HALFOP 
OP 
ADMIN 
OWNER 
ULINE 

Definition at line 37 of file m_remove.cpp.


Constructor & Destructor Documentation

RemoveBase::RemoveBase InspIRCd Instance,
bool &  snk
[inline, protected]
 

Definition at line 33 of file m_remove.cpp.


Member Function Documentation

ModeLevel RemoveBase::chartolevel const std::string privs  )  [inline, protected]
 

Definition at line 42 of file m_remove.cpp.

References ADMIN, HALFOP, OP, OWNER, PEON, and ULINE.

Referenced by Handle().

CmdResult RemoveBase::Handle const std::vector< std::string > &  parameters,
User user,
bool  neworder
[inline, protected]
 

Definition at line 72 of file m_remove.cpp.

References chartolevel(), CMD_FAILURE, CMD_SUCCESS, InspIRCd::Config, ERR_NOSUCHNICK, ModuleManager::Find(), InspIRCd::FindChan(), InspIRCd::FindNick(), Extensible::GetExt(), irc::stringjoiner::GetJoined(), Channel::GetPrefixChar(), Channel::HasUser(), IS_LOCAL, Channel::IsModeSet(), InspIRCd::Modules, Channel::name, User::nick, OWNER, Channel::PartUser(), PEON, User::server, ServerInstance, ServerConfig::ServerName, supportnokicks, ULINE, InspIRCd::ULine(), Channel::WriteChannelWithServ(), User::WriteNumeric(), and User::WriteServ().

Referenced by CommandFpart::Handle(), and CommandRemove::Handle().


Member Data Documentation

InspIRCd* RemoveBase::ServerInstance [private]
 

Definition at line 30 of file m_remove.cpp.

Referenced by Handle().

bool& RemoveBase::supportnokicks [private]
 

Definition at line 29 of file m_remove.cpp.

Referenced by Handle().


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