Anope IRC Services  Version 2.0
Public Member Functions
ChannelModeKey Class Reference

#include <modes.h>

Inheritance diagram for ChannelModeKey:
Inheritance graph
[legend]
Collaboration diagram for ChannelModeKey:
Collaboration graph
[legend]

Public Member Functions

 ChannelModeKey (char mc)
 
bool IsValid (Anope::string &value) const anope_override
 
- Public Member Functions inherited from ChannelModeParam
 ChannelModeParam (const Anope::string &name, char mc, bool minus_no_arg=false)
 
- Public Member Functions inherited from ChannelMode
 ChannelMode (const Anope::string &name, char mc)
 
bool CanSet (User *u) const anope_override
 
virtual ChannelModeWrap (Anope::string &param)
 
ChannelModeUnwrap (Anope::string &param)
 
virtual ChannelModeUnwrap (ChannelMode *, Anope::string &param)
 
- Public Member Functions inherited from Mode
 Mode (const Anope::string &mname, ModeClass mclass, char mc, ModeType type)
 
virtual ~Mode ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Additional Inherited Members

- Data Fields inherited from ChannelModeParam
bool minus_no_arg
 
- Data Fields inherited from ChannelMode
std::vector< ChannelMode * > listeners
 
- Data Fields inherited from Mode
Anope::string name
 
ModeClass mclass
 
char mchar
 
ModeType type
 

Detailed Description

Channel mode +k (key)

Definition at line 257 of file modes.h.

Constructor & Destructor Documentation

ChannelModeKey::ChannelModeKey ( char  mc)
inline

Definition at line 260 of file modes.h.

Member Function Documentation

bool ChannelModeKey::IsValid ( Anope::string value) const
virtual

Is the param valid

Parameters
valueThe param
Returns
true for yes, false for no

Reimplemented from ChannelModeParam.

Definition at line 241 of file modes.cpp.

References Anope::string::empty(), Anope::string::find(), and Anope::string::npos.


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