Anope IRC Services  Version 2.0
Public Member Functions | Private Member Functions
UnrealIRCdProto Class Reference
Inheritance diagram for UnrealIRCdProto:
Inheritance graph
[legend]
Collaboration diagram for UnrealIRCdProto:
Collaboration graph
[legend]

Public Member Functions

 UnrealIRCdProto (Module *creator)
 
- Public Member Functions inherited from IRCDProto
virtual ~IRCDProto ()
 
virtual void SendModeInternal (const MessageSource &, const Channel *, const Anope::string &)
 
virtual void SendKickInternal (const MessageSource &, const Channel *, User *, const Anope::string &)
 
virtual void SendNoticeInternal (const MessageSource &, const Anope::string &dest, const Anope::string &msg)
 
virtual void SendPrivmsgInternal (const MessageSource &, const Anope::string &dest, const Anope::string &buf)
 
virtual void SendQuitInternal (User *, const Anope::string &buf)
 
virtual void SendPartInternal (User *, const Channel *chan, const Anope::string &buf)
 
virtual void SendGlobopsInternal (const MessageSource &, const Anope::string &buf)
 
virtual void SendCTCPInternal (const MessageSource &, const Anope::string &dest, const Anope::string &buf)
 
virtual void SendNumericInternal (int numeric, const Anope::string &dest, const Anope::string &buf)
 
const Anope::stringGetProtocolName ()
 
virtual void Parse (const Anope::string &, Anope::string &, Anope::string &, std::vector< Anope::string > &)
 
virtual Anope::string Format (const Anope::string &source, const Anope::string &message)
 
virtual Anope::string UID_Retrieve ()
 
virtual Anope::string SID_Retrieve ()
 
virtual void SendKill (const MessageSource &source, const Anope::string &target, const Anope::string &reason)
 
virtual void SendSVSKill (const MessageSource &source, User *user, const char *fmt,...)
 
virtual void SendMode (const MessageSource &source, const Channel *dest, const char *fmt,...)
 
virtual void SendMode (const MessageSource &source, User *u, const char *fmt,...)
 
virtual void SendKick (const MessageSource &source, const Channel *chan, User *user, const char *fmt,...)
 
virtual void SendNotice (const MessageSource &source, const Anope::string &dest, const char *fmt,...)
 
virtual void SendPrivmsg (const MessageSource &source, const Anope::string &dest, const char *fmt,...)
 
virtual void SendAction (const MessageSource &source, const Anope::string &dest, const char *fmt,...)
 
virtual void SendCTCP (const MessageSource &source, const Anope::string &dest, const char *fmt,...)
 
virtual void SendQuit (User *u, const char *fmt,...)
 
virtual void SendPing (const Anope::string &servname, const Anope::string &who)
 
virtual void SendPong (const Anope::string &servname, const Anope::string &who)
 
virtual void SendPart (User *u, const Channel *chan, const char *fmt,...)
 
virtual void SendInvite (const MessageSource &source, const Channel *c, User *u)
 
virtual void SendGlobops (const MessageSource &source, const char *fmt,...)
 
virtual void SendNickChange (User *u, const Anope::string &newnick)
 
virtual void SendForceNickChange (User *u, const Anope::string &newnick, time_t when)
 
virtual void SendBOB ()
 
virtual void SendSquit (Server *, const Anope::string &message)
 
virtual void SendNumeric (int numeric, const Anope::string &dest, const char *fmt,...)
 
virtual void SendOper (User *u)
 
virtual bool IsHostValid (const Anope::string &)
 
virtual unsigned GetMaxListFor (Channel *c)
 
virtual Anope::string NormalizeMask (const Anope::string &mask)
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Member Functions

void SendSVSNOOP (const Server *server, bool set) anope_override
 
void SendAkillDel (const XLine *x) anope_override
 
void SendTopic (const MessageSource &source, Channel *c) anope_override
 
void SendGlobalNotice (BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override
 
void SendGlobalPrivmsg (BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override
 
void SendVhostDel (User *u) anope_override
 
void SendAkill (User *u, XLine *x) anope_override
 
void SendSVSKillInternal (const MessageSource &source, User *user, const Anope::string &buf) anope_override
 
void SendModeInternal (const MessageSource &source, User *u, const Anope::string &buf) anope_override
 
void SendClientIntroduction (User *u) anope_override
 
void SendServer (const Server *server) anope_override
 
void SendJoin (User *user, Channel *c, const ChannelStatus *status) anope_override
 
void SendSQLineDel (const XLine *x) anope_override
 
void SendSQLine (User *, const XLine *x) anope_override
 
void SendSVSO (BotInfo *source, const Anope::string &nick, const Anope::string &flag) anope_override
 
void SendVhost (User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
 
void SendConnect () anope_override
 
void SendSVSHold (const Anope::string &nick, time_t t) anope_override
 
void SendSVSHoldDel (const Anope::string &nick) anope_override
 
void SendSGLineDel (const XLine *x) anope_override
 
void SendSZLineDel (const XLine *x) anope_override
 
void SendSZLine (User *, const XLine *x) anope_override
 
void SendSGLine (User *, const XLine *x) anope_override
 
void SendSVSJoin (const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &param) anope_override
 
void SendSVSPart (const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &param) anope_override
 
void SendSWhois (const MessageSource &source, const Anope::string &who, const Anope::string &mask) anope_override
 
void SendEOB () anope_override
 
bool IsNickValid (const Anope::string &nick) anope_override
 
bool IsChannelValid (const Anope::string &chan) anope_override
 
bool IsExtbanValid (const Anope::string &mask) anope_override
 
void SendLogin (User *u, NickAlias *na) anope_override
 
void SendLogout (User *u) anope_override
 
void SendChannel (Channel *c) anope_override
 
void SendSASLMessage (const SASL::Message &message) anope_override
 
void SendSVSLogin (const Anope::string &uid, const Anope::string &acc) anope_override
 
bool IsIdentValid (const Anope::string &ident) anope_override
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from IRCDProto
Anope::string DefaultPseudoclientModes
 
bool CanSVSNick
 
bool CanSVSJoin
 
bool CanSetVHost
 
bool CanSetVIdent
 
bool CanSNLine
 
bool CanSQLine
 
bool CanSQLineChannel
 
bool CanSZLine
 
bool CanSVSHold
 
bool CanSVSO
 
bool CanCertFP
 
bool RequiresID
 
bool AmbiguousID
 
unsigned MaxModes
 
unsigned MaxLine
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 
- Protected Member Functions inherited from IRCDProto
 IRCDProto (Module *creator, const Anope::string &proto_name)
 

Detailed Description

Definition at line 16 of file unreal.cpp.

Constructor & Destructor Documentation

UnrealIRCdProto::UnrealIRCdProto ( Module creator)
inline

Member Function Documentation

bool UnrealIRCdProto::IsChannelValid ( const Anope::string chan)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 333 of file unreal.cpp.

References IRCDProto::IsChannelValid(), and Anope::string::npos.

bool UnrealIRCdProto::IsExtbanValid ( const Anope::string mask)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 341 of file unreal.cpp.

bool UnrealIRCdProto::IsIdentValid ( const Anope::string ident)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 396 of file unreal.cpp.

bool UnrealIRCdProto::IsNickValid ( const Anope::string nick)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 325 of file unreal.cpp.

References IRCDProto::IsNickValid().

void UnrealIRCdProto::SendAkill ( User ,
XLine  
)
inlineprivatevirtual

Sets an akill. This is a recursive function that can be called multiple times for the same xline, but for different users, if the xline is not one that can be enforced by the IRCd, such as a nick/user/host/realname combination ban.

Parameters
uThe user affected by the akill, if known
xThe akill

Implements IRCDProto.

Definition at line 84 of file unreal.cpp.

References XLineManager::AddXLine(), XLine::by, Anope::CurTime, XLine::expires, XLineManager::HasEntry(), XLine::id, IRCD, XLine::manager, XLine::mask, XLine::reason, IRCDProto::SendSZLine(), and UserListByNick.

void UnrealIRCdProto::SendAkillDel ( const XLine x)
inlineprivatevirtual

Implements IRCDProto.

Definition at line 41 of file unreal.cpp.

References IRCD, and IRCDProto::SendSZLineDel().

void UnrealIRCdProto::SendChannel ( Channel c)
inlineprivatevirtual

Send a channel creation message to the uplink. On most TS6 IRCds this is a SJOIN with no nick

Reimplemented from IRCDProto.

Definition at line 359 of file unreal.cpp.

References BotInfo::Join(), and BotInfo::Part().

void UnrealIRCdProto::SendClientIntroduction ( User u)
inlineprivatevirtual

Introduces a client to the rest of the network

Parameters
uThe client to introduce

Implements IRCDProto.

Definition at line 139 of file unreal.cpp.

References modes.

void UnrealIRCdProto::SendConnect ( )
inlineprivatevirtual

Used to introduce ourselves to our uplink. Usually will SendServer(Me) and any other initial handshake requirements.

Implements IRCDProto.

Definition at line 217 of file unreal.cpp.

References Anope::CurrentUplink, Anope::string::empty(), Server::GetSID(), Me, and SendServer().

void UnrealIRCdProto::SendEOB ( )
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 320 of file unreal.cpp.

References Me.

void UnrealIRCdProto::SendGlobalNotice ( BotInfo bi,
const Server dest,
const Anope::string msg 
)
inlineprivatevirtual

Implements IRCDProto.

Definition at line 65 of file unreal.cpp.

void UnrealIRCdProto::SendGlobalPrivmsg ( BotInfo bi,
const Server dest,
const Anope::string msg 
)
inlineprivatevirtual

Implements IRCDProto.

Definition at line 70 of file unreal.cpp.

void UnrealIRCdProto::SendJoin ( User u,
Channel c,
const ChannelStatus status 
)
inlineprivatevirtual

Joins one of our users to a channel.

Parameters
uThe user to join
cThe channel to join the user to
statusThe status to set on the user after joining. This may or may not already internally be set on the user. This may include the modes in the join, but will usually place them on the mode stacker to be set "soon".

Implements IRCDProto.

Definition at line 156 of file unreal.cpp.

References ChannelStatus::Clear(), BotInfo::Find(), ModeManager::FindChannelModeByChar(), Anope::string::length(), Me, ChannelStatus::Modes(), User::SetMode(), and ChanUserContainer::status.

void UnrealIRCdProto::SendLogin ( User u,
NickAlias na 
)
inlineprivatevirtual

Implements IRCDProto.

Definition at line 346 of file unreal.cpp.

References Servers::Capab, IRCD, and IRCDProto::SendMode().

void UnrealIRCdProto::SendLogout ( User u)
inlineprivatevirtual

Implements IRCDProto.

Definition at line 354 of file unreal.cpp.

References IRCD, and IRCDProto::SendMode().

void UnrealIRCdProto::SendModeInternal ( const MessageSource source,
User u,
const Anope::string buf 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 134 of file unreal.cpp.

void UnrealIRCdProto::SendSASLMessage ( const SASL::Message message)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 379 of file unreal.cpp.

References BotInfo::Find(), and Anope::string::npos.

void UnrealIRCdProto::SendServer ( const Server )
inlineprivatevirtual

Introduces a server to the uplink

Implements IRCDProto.

Definition at line 147 of file unreal.cpp.

References Me.

Referenced by SendConnect().

void UnrealIRCdProto::SendSGLine ( User ,
const XLine x 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 283 of file unreal.cpp.

References Anope::string::replace_all_cs().

void UnrealIRCdProto::SendSGLineDel ( const XLine x)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 258 of file unreal.cpp.

void UnrealIRCdProto::SendSQLine ( User ,
const XLine x 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 191 of file unreal.cpp.

void UnrealIRCdProto::SendSQLineDel ( const XLine x)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 181 of file unreal.cpp.

void UnrealIRCdProto::SendSVSHold ( const Anope::string nick,
time_t  t 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 243 of file unreal.cpp.

References Anope::CurTime, Server::GetName(), and Me.

void UnrealIRCdProto::SendSVSHoldDel ( const Anope::string nick)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 249 of file unreal.cpp.

References Server::GetName(), and Me.

void UnrealIRCdProto::SendSVSJoin ( const MessageSource source,
User u,
const Anope::string chan,
const Anope::string param 
)
inlineprivatevirtual

Force joins a user that isn't ours to a channel.

Parameters
biThe source of the message
uThe user to join
chanThe channel to join the user to
paramChannel key?

Reimplemented from IRCDProto.

Definition at line 299 of file unreal.cpp.

void UnrealIRCdProto::SendSVSKillInternal ( const MessageSource source,
User user,
const Anope::string buf 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 128 of file unreal.cpp.

void UnrealIRCdProto::SendSVSLogin ( const Anope::string uid,
const Anope::string acc 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 388 of file unreal.cpp.

References Me, and Anope::string::npos.

void UnrealIRCdProto::SendSVSNOOP ( const Server s,
bool  mode 
)
inlineprivatevirtual

Sets the server in NOOP mode. If NOOP mode is enabled, no users will be able to oper on the server.

Parameters
sThe server
modeWhether to turn NOOP on or off

Reimplemented from IRCDProto.

Definition at line 36 of file unreal.cpp.

void UnrealIRCdProto::SendSVSO ( BotInfo ,
const Anope::string ,
const Anope::string  
)
inlineprivatevirtual

Sets oper flags on a user, currently only supported by Unreal

Reimplemented from IRCDProto.

Definition at line 202 of file unreal.cpp.

void UnrealIRCdProto::SendSVSPart ( const MessageSource source,
User u,
const Anope::string chan,
const Anope::string param 
)
inlineprivatevirtual

Force parts a user that isn't ours from a channel.

Parameters
sourceThe source of the message
uThe user to part
chanThe channel to part the user from
parampart reason, some IRCds don't support this

Reimplemented from IRCDProto.

Definition at line 307 of file unreal.cpp.

void UnrealIRCdProto::SendSWhois ( const MessageSource source,
const Anope::string who,
const Anope::string mask 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 315 of file unreal.cpp.

void UnrealIRCdProto::SendSZLine ( User ,
const XLine x 
)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 270 of file unreal.cpp.

References Anope::CurTime.

void UnrealIRCdProto::SendSZLineDel ( const XLine x)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 264 of file unreal.cpp.

void UnrealIRCdProto::SendTopic ( const MessageSource source,
Channel c 
)
inlineprivatevirtual

Sets the topic on a channel

Parameters
biThe bot to set the topic from
cThe channel to set the topic on. The topic being set is Channel::topic

Reimplemented from IRCDProto.

Definition at line 60 of file unreal.cpp.

void UnrealIRCdProto::SendVhost ( User u,
const Anope::string vident,
const Anope::string vhost 
)
inlineprivatevirtual

Sets a vhost on a user.

Parameters
uThe user
videntThe ident to set
vhostThe vhost to set

Reimplemented from IRCDProto.

Definition at line 209 of file unreal.cpp.

References Me.

void UnrealIRCdProto::SendVhostDel ( User u)
inlineprivatevirtual

Reimplemented from IRCDProto.

Definition at line 75 of file unreal.cpp.

References ModeManager::ProcessModes().


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