Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
MessageSource Class Reference

#include <protocol.h>

Collaboration diagram for MessageSource:
Collaboration graph
[legend]

Public Member Functions

 MessageSource (const Anope::string &)
 
 MessageSource (User *u)
 
 MessageSource (Server *s)
 
const Anope::stringGetName () const
 
const Anope::stringGetSource () const
 
UserGetUser () const
 
BotInfoGetBot () const
 
ServerGetServer () const
 

Private Attributes

Anope::string source
 
Useru
 
Servers
 

Detailed Description

Definition at line 248 of file protocol.h.

Constructor & Destructor Documentation

◆ MessageSource() [1/3]

MessageSource::MessageSource ( const Anope::string src)

◆ MessageSource() [2/3]

MessageSource::MessageSource ( User u)

Definition at line 455 of file protocol.cpp.

◆ MessageSource() [3/3]

MessageSource::MessageSource ( Server s)

Definition at line 459 of file protocol.cpp.

Member Function Documentation

◆ GetBot()

BotInfo * MessageSource::GetBot ( ) const

Definition at line 483 of file protocol.cpp.

References BotInfo::Find(), and GetName().

Referenced by UplinkSocket::Message::~Message().

◆ GetName()

const Anope::string & MessageSource::GetName ( ) const

Definition at line 463 of file protocol.cpp.

References Server::GetName(), User::nick, s, source, and u.

Referenced by GetBot(), User::Kill(), User::KillInternal(), and Channel::SetModesInternal().

◆ GetServer()

Server * MessageSource::GetServer ( ) const

◆ GetSource()

const Anope::string & MessageSource::GetSource ( ) const

◆ GetUser()

User * MessageSource::GetUser ( ) const

Field Documentation

◆ s

Server* MessageSource::s
private

Definition at line 252 of file protocol.h.

Referenced by GetName(), GetServer(), and MessageSource().

◆ source

Anope::string MessageSource::source
private

Definition at line 250 of file protocol.h.

Referenced by GetName(), and GetSource().

◆ u

User* MessageSource::u
private

Definition at line 251 of file protocol.h.

Referenced by GetName(), GetUser(), and MessageSource().


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