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::MessageSource ( const Anope::string src)
MessageSource::MessageSource ( User u)

Definition at line 455 of file protocol.cpp.

MessageSource::MessageSource ( Server s)

Definition at line 459 of file protocol.cpp.

Member Function Documentation

BotInfo * MessageSource::GetBot ( ) const

Definition at line 483 of file protocol.cpp.

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

Referenced by OSDefcon::OnChannelModeUnset().

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().

Server * MessageSource::GetServer ( ) const

Definition at line 488 of file protocol.cpp.

References s.

Referenced by Anope::Process(), Channel::SetModesInternal(), and Message::Join::SJoin().

const Anope::string & MessageSource::GetSource ( ) const
User * MessageSource::GetUser ( ) const

Field Documentation

Server* MessageSource::s
private

Definition at line 252 of file protocol.h.

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

Anope::string MessageSource::source
private

Definition at line 250 of file protocol.h.

Referenced by GetName(), and GetSource().

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: