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

Public Member Functions

 InspIRCd12Proto (Module *creator)
 
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 SendAkillDel (const XLine *x) anope_override
 
void SendTopic (const MessageSource &source, Channel *c) anope_override
 
void SendVhostDel (User *u) anope_override
 
void SendAkill (User *u, XLine *x) anope_override
 
void SendNumericInternal (int numeric, const Anope::string &dest, const Anope::string &buf) anope_override
 
void SendModeInternal (const MessageSource &source, const Channel *dest, const Anope::string &buf) anope_override
 
void SendClientIntroduction (User *u) anope_override
 
void SendServer (const Server *server) anope_override
 
void SendSquit (Server *s, const Anope::string &message) 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 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 SendSZLineDel (const XLine *x) anope_override
 
void SendSZLine (User *, const XLine *x) anope_override
 
void SendSVSJoin (const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &) anope_override
 
void SendSVSPart (const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &param) anope_override
 
void SendSWhois (const MessageSource &, const Anope::string &who, const Anope::string &mask) anope_override
 
void SendBOB () anope_override
 
void SendEOB () anope_override
 
void SendGlobopsInternal (const MessageSource &source, const Anope::string &buf) anope_override
 
void SendLogin (User *u, NickAlias *na) anope_override
 
void SendLogout (User *u) anope_override
 
void SendChannel (Channel *c) anope_override
 
void SendOper (User *u) anope_override
 
void SendSASLMessage (const SASL::Message &message) anope_override
 
void SendSVSLogin (const Anope::string &uid, const Anope::string &acc) anope_override
 
bool IsExtbanValid (const Anope::string &mask) anope_override
 
bool IsIdentValid (const Anope::string &ident) anope_override
 
- Public Member Functions inherited from IRCDProto
virtual ~IRCDProto ()
 
virtual void SendModeInternal (const MessageSource &, User *, 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 SendCTCPInternal (const MessageSource &, 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 SendSVSNOOP (const Server *s, bool mode)
 
virtual void SendSGLine (User *, const XLine *)
 
virtual void SendSGLineDel (const XLine *)
 
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 SendSVSO (BotInfo *, const Anope::string &, const Anope::string &)
 
virtual void SendNickChange (User *u, const Anope::string &newnick)
 
virtual void SendForceNickChange (User *u, const Anope::string &newnick, time_t when)
 
virtual void SendNumeric (int numeric, const Anope::string &dest, const char *fmt,...)
 
virtual bool IsNickValid (const Anope::string &)
 
virtual bool IsChannelValid (const Anope::string &)
 
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 SendSVSKillInternal (const MessageSource &source, User *user, const Anope::string &buf) anope_override
 
void SendChgIdentInternal (const Anope::string &nick, const Anope::string &vIdent)
 
void SendChgHostInternal (const Anope::string &nick, const Anope::string &vhost)
 
void SendAddLine (const Anope::string &xtype, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason)
 
void SendDelLine (const Anope::string &xtype, const Anope::string &mask)
 

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 45 of file inspircd12.cpp.

Constructor & Destructor Documentation

InspIRCd12Proto::InspIRCd12Proto ( Module creator)
inline

Member Function Documentation

bool InspIRCd12Proto::IsExtbanValid ( const Anope::string mask)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 428 of file inspircd12.cpp.

bool InspIRCd12Proto::IsIdentValid ( const Anope::string ident)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 433 of file inspircd12.cpp.

void InspIRCd12Proto::SendAddLine ( const Anope::string xtype,
const Anope::string mask,
time_t  duration,
const Anope::string addedby,
const Anope::string reason 
)
inlineprivate

Definition at line 70 of file inspircd12.cpp.

References Anope::CurTime, and Me.

Referenced by SendAkill(), SendSQLine(), and SendSZLine().

void InspIRCd12Proto::SendAkill ( User ,
XLine  
)
inlinevirtual

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 163 of file inspircd12.cpp.

References XLineManager::AddXLine(), XLine::by, Servers::Capab, Anope::CurTime, XLine::expires, Anope::string::find(), XLineManager::HasEntry(), XLine::id, IRCD, XLine::manager, XLine::mask, Anope::string::npos, XLine::reason, Anope::string::replace(), SendAddLine(), IRCDProto::SendSZLine(), and UserListByNick.

void InspIRCd12Proto::SendAkillDel ( const XLine x)
inlinevirtual
void InspIRCd12Proto::SendBOB ( )
inlinevirtual

Called right before we begin our burst, after we have handshaked successfully with the uplink/ At this point none of our servesr, users, or channels exist on the uplink

Reimplemented from IRCDProto.

Definition at line 358 of file inspircd12.cpp.

References Anope::CurTime, ENCRYPTION, ModuleManager::FindFirstOf(), Server::GetName(), IRCDProto::GetProtocolName(), IRCD, Me, Module::name, Anope::Version(), and Anope::VersionBuildString().

void InspIRCd12Proto::SendChannel ( Channel c)
inlinevirtual

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 392 of file inspircd12.cpp.

References Me.

void InspIRCd12Proto::SendChgHostInternal ( const Anope::string nick,
const Anope::string vhost 
)
inlineprivate

Definition at line 62 of file inspircd12.cpp.

References Servers::Capab, and Me.

Referenced by SendVhost(), and SendVhostDel().

void InspIRCd12Proto::SendChgIdentInternal ( const Anope::string nick,
const Anope::string vIdent 
)
inlineprivate

Definition at line 54 of file inspircd12.cpp.

References Servers::Capab, and Me.

Referenced by SendVhost(), and SendVhostDel().

void InspIRCd12Proto::SendClientIntroduction ( User u)
inlinevirtual

Introduces a client to the rest of the network

Parameters
uThe client to introduce

Implements IRCDProto.

Definition at line 227 of file inspircd12.cpp.

References Me, and modes.

void InspIRCd12Proto::SendConnect ( )
inlinevirtual

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

Implements IRCDProto.

Definition at line 305 of file inspircd12.cpp.

References Me, and SendServer().

void InspIRCd12Proto::SendDelLine ( const Anope::string xtype,
const Anope::string mask 
)
inlineprivate

Definition at line 75 of file inspircd12.cpp.

References Me.

Referenced by SendAkillDel(), SendSQLineDel(), and SendSZLineDel().

void InspIRCd12Proto::SendEOB ( )
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 365 of file inspircd12.cpp.

References Me.

void InspIRCd12Proto::SendGlobalNotice ( BotInfo bi,
const Server dest,
const Anope::string msg 
)
inlinevirtual

Implements IRCDProto.

Definition at line 96 of file inspircd12.cpp.

void InspIRCd12Proto::SendGlobalPrivmsg ( BotInfo bi,
const Server dest,
const Anope::string msg 
)
inlinevirtual

Implements IRCDProto.

Definition at line 101 of file inspircd12.cpp.

void InspIRCd12Proto::SendGlobopsInternal ( const MessageSource source,
const Anope::string buf 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 370 of file inspircd12.cpp.

References Servers::Capab.

void InspIRCd12Proto::SendJoin ( User u,
Channel c,
const ChannelStatus status 
)
inlinevirtual

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 254 of file inspircd12.cpp.

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

void InspIRCd12Proto::SendLogin ( User u,
NickAlias na 
)
inlinevirtual

Implements IRCDProto.

Definition at line 378 of file inspircd12.cpp.

References Me.

void InspIRCd12Proto::SendLogout ( User u)
inlinevirtual

Implements IRCDProto.

Definition at line 387 of file inspircd12.cpp.

References Me.

void InspIRCd12Proto::SendModeInternal ( const MessageSource source,
const Channel dest,
const Anope::string buf 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 222 of file inspircd12.cpp.

void InspIRCd12Proto::SendNumericInternal ( int  numeric,
const Anope::string dest,
const Anope::string buf 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 217 of file inspircd12.cpp.

References Server::GetName(), and Me.

void InspIRCd12Proto::SendOper ( User u)
inlinevirtual

Make the user an IRC operator Normally this is a simple +o, though some IRCds require us to send the oper type

Reimplemented from IRCDProto.

Definition at line 397 of file inspircd12.cpp.

void InspIRCd12Proto::SendSASLMessage ( const SASL::Message message)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 401 of file inspircd12.cpp.

References Me, and UplinkSocket::Message::source.

void InspIRCd12Proto::SendServer ( const Server )
inlinevirtual

Introduces a server to the uplink

Implements IRCDProto.

Definition at line 234 of file inspircd12.cpp.

References Anope::CurrentUplink, and Anope::string::empty().

Referenced by SendConnect().

void InspIRCd12Proto::SendSQLine ( User ,
const XLine x 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 288 of file inspircd12.cpp.

References Anope::CurTime, and SendAddLine().

void InspIRCd12Proto::SendSQLineDel ( const XLine x)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 282 of file inspircd12.cpp.

References SendDelLine().

void InspIRCd12Proto::SendSquit ( Server s,
const Anope::string message 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 241 of file inspircd12.cpp.

References Me.

void InspIRCd12Proto::SendSVSHold ( const Anope::string nick,
time_t  t 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 311 of file inspircd12.cpp.

void InspIRCd12Proto::SendSVSHoldDel ( const Anope::string nick)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 317 of file inspircd12.cpp.

void InspIRCd12Proto::SendSVSJoin ( const MessageSource source,
User u,
const Anope::string chan,
const Anope::string param 
)
inlinevirtual

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 338 of file inspircd12.cpp.

References User::GetUID().

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

Reimplemented from IRCDProto.

Definition at line 48 of file inspircd12.cpp.

References IRCDProto::SendSVSKillInternal().

void InspIRCd12Proto::SendSVSLogin ( const Anope::string uid,
const Anope::string acc 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 406 of file inspircd12.cpp.

References SASLUser::acc, SASLUser::created, Anope::CurTime, Me, saslusers, and SASLUser::uid.

void InspIRCd12Proto::SendSVSPart ( const MessageSource source,
User u,
const Anope::string chan,
const Anope::string param 
)
inlinevirtual

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 343 of file inspircd12.cpp.

void InspIRCd12Proto::SendSWhois ( const MessageSource ,
const Anope::string who,
const Anope::string mask 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 351 of file inspircd12.cpp.

References User::Find(), User::GetUID(), and Me.

void InspIRCd12Proto::SendSZLine ( User ,
const XLine x 
)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 329 of file inspircd12.cpp.

References Anope::CurTime, and SendAddLine().

void InspIRCd12Proto::SendSZLineDel ( const XLine x)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 323 of file inspircd12.cpp.

References SendDelLine().

void InspIRCd12Proto::SendTopic ( const MessageSource source,
Channel c 
)
inlinevirtual

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 135 of file inspircd12.cpp.

References Servers::Capab, and Anope::CurTime.

void InspIRCd12Proto::SendVhost ( User u,
const Anope::string vident,
const Anope::string vhost 
)
inlinevirtual

Sets a vhost on a user.

Parameters
uThe user
videntThe ident to set
vhostThe vhost to set

Reimplemented from IRCDProto.

Definition at line 297 of file inspircd12.cpp.

References SendChgHostInternal(), and SendChgIdentInternal().

void InspIRCd12Proto::SendVhostDel ( User u)
inlinevirtual

Reimplemented from IRCDProto.

Definition at line 152 of file inspircd12.cpp.

References Servers::Capab, SendChgHostInternal(), and SendChgIdentInternal().


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