InspIRCd
3.0
|
#include <message.h>
Public Types | |
enum | TargetType { TYPE_USER, TYPE_CHANNEL, TYPE_SERVER } |
Public Member Functions | |
MessageTarget (Channel *channel, char statuschar) | |
MessageTarget (User *user) | |
MessageTarget (std::string *server) | |
template<typename T > | |
T * | Get () const |
const std::string & | GetName () const |
Public Attributes | |
char | status |
MessageTarget::TargetType | type |
Represents the target of a message (NOTICE, PRIVMSG, etc).
|
inline |
Initialises a new channel message target.
channel | The channel which is the target of the message. |
statuschar | The lowest status rank that the message is being sent to. |
|
inline |
Initialises a new user message target.
user | The user which is the target of the message. |
|
inline |
Initialises a new server message target.
server | The server glob which is the target of the message. |
|
inline |
Retrieves the target of this message.
|
inline |
Retrieves the name of the target of this message.
char MessageTarget::status |
If type is TYPE_CHANNEL and the user specified a status rank.
MessageTarget::TargetType MessageTarget::type |
The type of the target of the message. If this is TYPE_CHANNEL then dest is a Channel*, TYPE_USER then dest is a User*, and TYPE_SERVER then dest is a std::string* containing a server glob.