Anope IRC Services  Version 2.0
Public Member Functions | Data Fields | Protected Member Functions | Private Attributes
IRCDProto Class Referenceabstract

#include <protocol.h>

Inheritance diagram for IRCDProto:
Inheritance graph
[legend]
Collaboration diagram for IRCDProto:
Collaboration graph
[legend]

Public Member Functions

virtual ~IRCDProto ()
 
virtual void SendSVSKillInternal (const MessageSource &, User *, const Anope::string &)
 
virtual void SendModeInternal (const MessageSource &, const Channel *, const Anope::string &)
 
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 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 SendSVSNOOP (const Server *s, bool mode)
 
virtual void SendTopic (const MessageSource &, Channel *)
 
virtual void SendVhost (User *u, const Anope::string &vident, const Anope::string &vhost)
 
virtual void SendVhostDel (User *)
 
virtual void SendAkill (User *, XLine *)=0
 
virtual void SendAkillDel (const XLine *)=0
 
virtual void SendSGLine (User *, const XLine *)
 
virtual void SendSGLineDel (const XLine *)
 
virtual void SendSZLine (User *u, const XLine *)
 
virtual void SendSZLineDel (const XLine *)
 
virtual void SendSQLine (User *, const XLine *x)
 
virtual void SendSQLineDel (const XLine *x)
 
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 SendClientIntroduction (User *u)=0
 
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 SendGlobalNotice (BotInfo *bi, const Server *dest, const Anope::string &msg)=0
 
virtual void SendGlobalPrivmsg (BotInfo *bi, const Server *desc, const Anope::string &msg)=0
 
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 SendJoin (User *u, Channel *c, const ChannelStatus *status)=0
 
virtual void SendPart (User *u, const Channel *chan, const char *fmt,...)
 
virtual void SendSVSJoin (const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &param)
 
virtual void SendSVSPart (const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &param)
 
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 SendConnect ()=0
 
virtual void SendBOB ()
 
virtual void SendEOB ()
 
virtual void SendSVSHold (const Anope::string &, time_t)
 
virtual void SendSVSHoldDel (const Anope::string &)
 
virtual void SendSWhois (const MessageSource &, const Anope::string &, const Anope::string &)
 
virtual void SendServer (const Server *)=0
 
virtual void SendSquit (Server *, const Anope::string &message)
 
virtual void SendNumeric (int numeric, const Anope::string &dest, const char *fmt,...)
 
virtual void SendLogin (User *u, NickAlias *na)=0
 
virtual void SendLogout (User *u)=0
 
virtual void SendChannel (Channel *c)
 
virtual void SendOper (User *u)
 
virtual void SendSASLMessage (const SASL::Message &)
 
virtual void SendSVSLogin (const Anope::string &uid, const Anope::string &acc)
 
virtual bool IsNickValid (const Anope::string &)
 
virtual bool IsChannelValid (const Anope::string &)
 
virtual bool IsIdentValid (const Anope::string &)
 
virtual bool IsHostValid (const Anope::string &)
 
virtual bool IsExtbanValid (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)
 

Data Fields

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

 IRCDProto (Module *creator, const Anope::string &proto_name)
 

Private Attributes

Anope::string proto_name
 

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)
 

Detailed Description

Definition at line 21 of file protocol.h.

Constructor & Destructor Documentation

IRCDProto::IRCDProto ( Module creator,
const Anope::string proto_name 
)
protected
IRCDProto::~IRCDProto ( )
virtual

Definition at line 37 of file protocol.cpp.

Member Function Documentation

Anope::string IRCDProto::Format ( const Anope::string source,
const Anope::string message 
)
virtual

Definition at line 103 of file process.cpp.

References Anope::string::empty().

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

unsigned IRCDProto::GetMaxListFor ( Channel c)
virtual

Retrieve the maximum number of list modes settable on this channel Defaults to Config->ListSize

Definition at line 432 of file protocol.cpp.

References Channel::HasMode().

Referenced by CommandCSMode::DoLock(), CommandCSMode::DoSet(), and CommandCSBan::Execute().

const Anope::string & IRCDProto::GetProtocolName ( )

Definition at line 43 of file protocol.cpp.

References proto_name.

Referenced by Message::Privmsg::Run(), Message::Version::Run(), and InspIRCd12Proto::SendBOB().

bool IRCDProto::IsChannelValid ( const Anope::string chan)
virtual
virtual bool IRCDProto::IsExtbanValid ( const Anope::string )
inlinevirtual

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, and InspIRCd20Proto.

Definition at line 238 of file protocol.h.

Referenced by CommandCSAKick::DoAdd(), Entry::Matches(), and NormalizeMask().

bool IRCDProto::IsHostValid ( const Anope::string host)
virtual
bool IRCDProto::IsIdentValid ( const Anope::string ident)
virtual
bool IRCDProto::IsNickValid ( const Anope::string nick)
virtual

RFC: defination of a valid nick nickname = ( letter / special ) ( letter / digit / special / "-" ) letter = A-Z / a-z digit = 0-9 special = [, ], \, `, _, ^, {, |, }

Reimplemented in UnrealIRCdProto.

Definition at line 349 of file protocol.cpp.

References Anope::string::empty(), Anope::string::find(), Anope::string::length(), Anope::string::npos, and special.

Referenced by CommandBSBot::DoAdd(), CommandBSBot::DoChange(), CommandOSSVSNick::Execute(), CommandNSGroup::Execute(), CommandNSRegister::Execute(), and UnrealIRCdProto::IsNickValid().

Anope::string IRCDProto::NormalizeMask ( const Anope::string mask)
virtual

Definition at line 437 of file protocol.cpp.

References Entry::GetNUHMask(), and IsExtbanValid().

Referenced by ChannelModeList::IsValid().

void IRCDProto::Parse ( const Anope::string buffer,
Anope::string source,
Anope::string command,
std::vector< Anope::string > &  params 
)
virtual
void IRCDProto::SendAction ( const MessageSource source,
const Anope::string dest,
const char *  fmt,
  ... 
)
virtual

Definition at line 231 of file protocol.cpp.

References BUFSIZE, and SendPrivmsgInternal().

Referenced by CommandBSAct::Execute().

virtual void IRCDProto::SendAkill ( User ,
XLine  
)
pure virtual

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

Implemented in BahamutIRCdProto, InspIRCd12Proto, HybridProto, UnrealIRCdProto, CharybdisProto, InspIRCd20Proto, PlexusProto, RatboxProto, and ngIRCdProto.

Referenced by ProxyConnect::Ban(), DNSBLResolver::OnLookupComplete(), and SGLineManager::Send().

virtual void IRCDProto::SendAkillDel ( const XLine )
pure virtual
virtual void IRCDProto::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 in InspIRCd12Proto, BahamutIRCdProto, and InspIRCd20Proto.

Definition at line 203 of file protocol.h.

Referenced by Server::Server().

virtual void IRCDProto::SendChannel ( Channel c)
inlinevirtual

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

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, BahamutIRCdProto, HybridProto, InspIRCd20Proto, CharybdisProto, ngIRCdProto, PlexusProto, and RatboxProto.

Definition at line 224 of file protocol.h.

Referenced by ChanServCore::OnJoinChannel(), CSSet::OnJoinChannel(), ChanServCore::OnPreUplinkSync(), and Server::Server().

virtual void IRCDProto::SendClientIntroduction ( User u)
pure virtual

Introduces a client to the rest of the network

Parameters
uThe client to introduce

Implemented in BahamutIRCdProto, InspIRCd12Proto, HybridProto, UnrealIRCdProto, PlexusProto, CharybdisProto, RatboxProto, ngIRCdProto, and InspIRCd20Proto.

Referenced by BotInfo::BotInfo(), NickServRelease::NickServRelease(), BotInfo::OnKill(), and Server::Server().

virtual void IRCDProto::SendConnect ( )
pure virtual

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

Implemented in InspIRCd12Proto, BahamutIRCdProto, UnrealIRCdProto, HybridProto, PlexusProto, CharybdisProto, ngIRCdProto, RatboxProto, and InspIRCd20Proto.

Referenced by UplinkSocket::OnConnect().

void IRCDProto::SendCTCP ( const MessageSource source,
const Anope::string dest,
const char *  fmt,
  ... 
)
virtual

Definition at line 329 of file protocol.cpp.

References BUFSIZE, and SendCTCPInternal().

Referenced by Message::Privmsg::Run().

void IRCDProto::SendCTCPInternal ( const MessageSource source,
const Anope::string dest,
const Anope::string buf 
)
virtual

Definition at line 154 of file protocol.cpp.

References Anope::NormalizeBuffer(), and SendNoticeInternal().

Referenced by SendCTCP().

virtual void IRCDProto::SendEOB ( )
inlinevirtual

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, BahamutIRCdProto, HybridProto, and InspIRCd20Proto.

Definition at line 204 of file protocol.h.

Referenced by Server::Sync().

void IRCDProto::SendForceNickChange ( User u,
const Anope::string newnick,
time_t  when 
)
virtual

Forces a nick change of a user that isn't ours (SVSNICK)

Reimplemented in HybridProto, CharybdisProto, PlexusProto, and ngIRCdProto.

Definition at line 324 of file protocol.cpp.

References User::GetUID().

Referenced by NickServCore::Collide(), CommandOSSVSNick::Execute(), and NSRecoverRequest::OnSuccess().

virtual void IRCDProto::SendGlobalNotice ( BotInfo bi,
const Server dest,
const Anope::string msg 
)
pure virtual
virtual void IRCDProto::SendGlobalPrivmsg ( BotInfo bi,
const Server desc,
const Anope::string msg 
)
pure virtual
void IRCDProto::SendGlobops ( const MessageSource source,
const char *  fmt,
  ... 
)
virtual

Definition at line 304 of file protocol.cpp.

References BUFSIZE, and SendGlobopsInternal().

Referenced by LogInfo::ProcessMessage().

void IRCDProto::SendGlobopsInternal ( const MessageSource source,
const Anope::string buf 
)
virtual

Reimplemented in InspIRCd12Proto, ngIRCdProto, InspIRCd20Proto, HybridProto, CharybdisProto, PlexusProto, and RatboxProto.

Definition at line 149 of file protocol.cpp.

Referenced by SendGlobops().

void IRCDProto::SendInvite ( const MessageSource source,
const Channel c,
User u 
)
virtual

Definition at line 284 of file protocol.cpp.

References User::GetUID(), and Channel::name.

Referenced by CommandCSInvite::Execute(), and NSAJoin::OnUserLogin().

virtual void IRCDProto::SendJoin ( User u,
Channel c,
const ChannelStatus status 
)
pure virtual

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".

Implemented in InspIRCd12Proto, BahamutIRCdProto, UnrealIRCdProto, HybridProto, ngIRCdProto, CharybdisProto, InspIRCd20Proto, PlexusProto, and RatboxProto.

Referenced by BotInfo::Join(), BotInfo::OnKill(), and Server::Server().

void IRCDProto::SendKick ( const MessageSource source,
const Channel chan,
User user,
const char *  fmt,
  ... 
)
virtual

Definition at line 208 of file protocol.cpp.

References BUFSIZE, and SendKickInternal().

Referenced by Channel::Kick().

void IRCDProto::SendKickInternal ( const MessageSource source,
const Channel c,
User u,
const Anope::string r 
)
virtual

Reimplemented in ngIRCdProto.

Definition at line 115 of file protocol.cpp.

References Anope::string::empty(), User::GetUID(), and Channel::name.

Referenced by SendKick().

void IRCDProto::SendKill ( const MessageSource source,
const Anope::string target,
const Anope::string reason 
)
virtual

Definition at line 95 of file protocol.cpp.

Referenced by Collide().

virtual void IRCDProto::SendLogin ( User u,
NickAlias na 
)
pure virtual
virtual void IRCDProto::SendLogout ( User u)
pure virtual
void IRCDProto::SendMode ( const MessageSource source,
const Channel dest,
const char *  fmt,
  ... 
)
virtual
void IRCDProto::SendMode ( const MessageSource source,
User u,
const char *  fmt,
  ... 
)
virtual

Definition at line 198 of file protocol.cpp.

References BUFSIZE, and SendModeInternal().

void IRCDProto::SendModeInternal ( const MessageSource source,
const Channel dest,
const Anope::string buf 
)
virtual

Reimplemented in InspIRCd12Proto, ngIRCdProto, InspIRCd20Proto, and BahamutIRCdProto.

Definition at line 105 of file protocol.cpp.

References Channel::name.

Referenced by SendMode(), and BahamutIRCdProto::SendModeInternal().

void IRCDProto::SendModeInternal ( const MessageSource source,
User dest,
const Anope::string buf 
)
virtual

Reimplemented in HybridProto, PlexusProto, UnrealIRCdProto, BahamutIRCdProto, and RatboxProto.

Definition at line 110 of file protocol.cpp.

References User::GetUID().

void IRCDProto::SendNickChange ( User u,
const Anope::string newnick 
)
virtual

Sends a nick change of one of our clients.

Definition at line 319 of file protocol.cpp.

References Anope::CurTime.

Referenced by CommandBSBot::DoChange().

void IRCDProto::SendNotice ( const MessageSource source,
const Anope::string dest,
const char *  fmt,
  ... 
)
virtual

Definition at line 221 of file protocol.cpp.

References BUFSIZE, and SendNoticeInternal().

Referenced by BotServCore::OnJoinChannel(), CSLog::OnLog(), and User::SendMessage().

void IRCDProto::SendNoticeInternal ( const MessageSource source,
const Anope::string dest,
const Anope::string msg 
)
virtual

Definition at line 123 of file protocol.cpp.

Referenced by SendCTCPInternal(), and SendNotice().

void IRCDProto::SendNumeric ( int  numeric,
const Anope::string dest,
const char *  fmt,
  ... 
)
virtual
void IRCDProto::SendNumericInternal ( int  numeric,
const Anope::string dest,
const Anope::string buf 
)
virtual

Reimplemented in InspIRCd12Proto, and InspIRCd20Proto.

Definition at line 160 of file protocol.cpp.

References Me, and stringify().

Referenced by SendNumeric(), and SendOper().

void IRCDProto::SendOper ( User u)
virtual

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

Reimplemented in InspIRCd12Proto.

Definition at line 426 of file protocol.cpp.

References User::GetUID(), SendNumericInternal(), and User::SetMode().

Referenced by User::Identify(), SQLOperResult::OnResult(), and User::SetModeInternal().

void IRCDProto::SendPart ( User u,
const Channel chan,
const char *  fmt,
  ... 
)
virtual

Definition at line 289 of file protocol.cpp.

References BUFSIZE, and SendPartInternal().

Referenced by BotInfo::Part().

void IRCDProto::SendPartInternal ( User u,
const Channel chan,
const Anope::string buf 
)
virtual

Reimplemented in ngIRCdProto.

Definition at line 141 of file protocol.cpp.

References Anope::string::empty(), and Channel::name.

Referenced by SendPart().

void IRCDProto::SendPing ( const Anope::string servname,
const Anope::string who 
)
virtual

Definition at line 262 of file protocol.cpp.

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

Referenced by IRCDMessageServer::Run(), and IRCDMessageSID::Run().

void IRCDProto::SendPong ( const Anope::string servname,
const Anope::string who 
)
virtual

Send a PONG reply to a received PING. servname should be left NULL to send a one param reply.

Parameters
servnameDaemon or client that is responding to the PING.
whoOrigin of the PING and destination of the PONG message.

Definition at line 276 of file protocol.cpp.

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

Referenced by Message::Ping::Run().

void IRCDProto::SendPrivmsg ( const MessageSource source,
const Anope::string dest,
const char *  fmt,
  ... 
)
virtual
void IRCDProto::SendPrivmsgInternal ( const MessageSource source,
const Anope::string dest,
const Anope::string buf 
)
virtual

Definition at line 128 of file protocol.cpp.

Referenced by SendAction(), and SendPrivmsg().

void IRCDProto::SendQuit ( User u,
const char *  fmt,
  ... 
)
virtual
void IRCDProto::SendQuitInternal ( User u,
const Anope::string buf 
)
virtual

Definition at line 133 of file protocol.cpp.

References Anope::string::empty().

Referenced by SendQuit().

virtual void IRCDProto::SendSASLMessage ( const SASL::Message )
inlinevirtual

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, CharybdisProto, and InspIRCd20Proto.

Definition at line 231 of file protocol.h.

Referenced by SASLService::SendMessage().

virtual void IRCDProto::SendServer ( const Server )
pure virtual
virtual void IRCDProto::SendSGLine ( User ,
const XLine  
)
inlinevirtual

Reimplemented in UnrealIRCdProto, BahamutIRCdProto, HybridProto, CharybdisProto, PlexusProto, and RatboxProto.

Definition at line 112 of file protocol.h.

Referenced by SNLineManager::Send().

virtual void IRCDProto::SendSGLineDel ( const XLine )
inlinevirtual

Reimplemented in UnrealIRCdProto, BahamutIRCdProto, HybridProto, CharybdisProto, PlexusProto, and RatboxProto.

Definition at line 113 of file protocol.h.

Referenced by SNLineManager::SendDel().

virtual void IRCDProto::SendSQLine ( User ,
const XLine x 
)
inlinevirtual
virtual void IRCDProto::SendSQLineDel ( const XLine x)
inlinevirtual
void IRCDProto::SendSquit ( Server s,
const Anope::string message 
)
virtual

Reimplemented in InspIRCd12Proto, and InspIRCd20Proto.

Definition at line 314 of file protocol.cpp.

References Server::GetSID().

Referenced by CommandOSJupe::Execute(), and UplinkSocket::~UplinkSocket().

virtual void IRCDProto::SendSVSHold ( const Anope::string ,
time_t   
)
inlinevirtual
virtual void IRCDProto::SendSVSHoldDel ( const Anope::string )
inlinevirtual
virtual void IRCDProto::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 in InspIRCd12Proto, UnrealIRCdProto, HybridProto, PlexusProto, and InspIRCd20Proto.

Definition at line 170 of file protocol.h.

Referenced by CommandOSSVSJoin::Execute(), NSAJoin::OnUserLogin(), and NSRecover::OnUserNickChange().

void IRCDProto::SendSVSKill ( const MessageSource source,
User user,
const char *  fmt,
  ... 
)
virtual

Kills a user

Parameters
sourceWho is doing the kill
userThe user to be killed
fmtKill reason

Definition at line 175 of file protocol.cpp.

References BUFSIZE, and SendSVSKillInternal().

Referenced by User::Kill().

void IRCDProto::SendSVSKillInternal ( const MessageSource source,
User user,
const Anope::string buf 
)
virtual
virtual void IRCDProto::SendSVSLogin ( const Anope::string uid,
const Anope::string acc 
)
inlinevirtual

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, CharybdisProto, and InspIRCd20Proto.

Definition at line 232 of file protocol.h.

Referenced by SASLService::Succeed().

virtual void IRCDProto::SendSVSNOOP ( const Server s,
bool  mode 
)
inlinevirtual

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 in BahamutIRCdProto, and UnrealIRCdProto.

Definition at line 86 of file protocol.h.

Referenced by CommandOSNOOP::Execute().

virtual void IRCDProto::SendSVSO ( BotInfo ,
const Anope::string ,
const Anope::string  
)
inlinevirtual

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

Reimplemented in UnrealIRCdProto.

Definition at line 185 of file protocol.h.

Referenced by CommandOSOLine::Execute().

virtual void IRCDProto::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 in InspIRCd12Proto, UnrealIRCdProto, HybridProto, PlexusProto, and InspIRCd20Proto.

Definition at line 178 of file protocol.h.

Referenced by CommandOSSVSPart::Execute().

virtual void IRCDProto::SendSWhois ( const MessageSource ,
const Anope::string ,
const Anope::string  
)
inlinevirtual

Reimplemented in InspIRCd12Proto, UnrealIRCdProto, and InspIRCd20Proto.

Definition at line 209 of file protocol.h.

virtual void IRCDProto::SendSZLine ( User u,
const XLine  
)
inlinevirtual
virtual void IRCDProto::SendSZLineDel ( const XLine )
inlinevirtual
void IRCDProto::SendTopic ( const MessageSource source,
Channel c 
)
virtual

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 in HybridProto, PlexusProto, BahamutIRCdProto, ngIRCdProto, InspIRCd12Proto, RatboxProto, CharybdisProto, UnrealIRCdProto, and InspIRCd20Proto.

Definition at line 170 of file protocol.cpp.

References Channel::name, and Channel::topic.

Referenced by Channel::ChangeTopic(), RatboxProto::SendTopic(), and Server::Server().

virtual void IRCDProto::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 in InspIRCd12Proto, HybridProto, UnrealIRCdProto, ngIRCdProto, CharybdisProto, PlexusProto, and InspIRCd20Proto.

Definition at line 99 of file protocol.h.

Referenced by CommandHSOn::Execute(), User::Identify(), HostServCore::OnSetVhost(), HostServCore::OnUserLogin(), and User::SetModeInternal().

virtual void IRCDProto::SendVhostDel ( User )
inlinevirtual
Anope::string IRCDProto::SID_Retrieve ( )
virtual
Anope::string IRCDProto::UID_Retrieve ( )
virtual

Definition at line 59 of file protocol.cpp.

References User::Find(), Server::GetSID(), Anope::string::length(), Me, nextID(), and RequiresID.

Referenced by BotInfo::GenerateUID().

Field Documentation

bool IRCDProto::AmbiguousID

Definition at line 71 of file protocol.h.

Referenced by BotInfo::Find(), User::Find(), and IRCDProto().

bool IRCDProto::CanCertFP
bool IRCDProto::CanSetVHost
bool IRCDProto::CanSetVIdent
bool IRCDProto::CanSNLine
bool IRCDProto::CanSQLine
bool IRCDProto::CanSQLineChannel
bool IRCDProto::CanSVSHold
bool IRCDProto::CanSVSJoin
bool IRCDProto::CanSVSNick
bool IRCDProto::CanSVSO

Definition at line 65 of file protocol.h.

Referenced by IRCDProto(), OSOLine::OSOLine(), and UnrealIRCdProto::UnrealIRCdProto().

bool IRCDProto::CanSZLine
Anope::string IRCDProto::DefaultPseudoclientModes
unsigned IRCDProto::MaxLine

Definition at line 75 of file protocol.h.

Referenced by BuildModeStrings(), and IRCDProto().

unsigned IRCDProto::MaxModes
Anope::string IRCDProto::proto_name
private

Definition at line 23 of file protocol.h.

Referenced by GetProtocolName().

bool IRCDProto::RequiresID

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