InspIRCd  3.0
Public Member Functions | List of all members
FakeUser Class Reference
Inheritance diagram for FakeUser:
User Extensible classbase

Public Member Functions

 FakeUser (const std::string &uid, Server *srv)
 
 FakeUser (const std::string &uid, const std::string &sname, const std::string &sdesc)
 
virtual CullResult cull () CXX11_OVERRIDE
 
virtual const std::string & GetFullHost () CXX11_OVERRIDE
 
virtual const std::string & GetFullRealHost () CXX11_OVERRIDE
 
- Public Member Functions inherited from User
const std::string & GetIPString ()
 
irc::sockets::cidr_mask GetCIDRMask ()
 
virtual bool SetClientIP (const char *sip, bool recheck_eline=true)
 
virtual void SetClientIP (const irc::sockets::sockaddrs &sa, bool recheck_eline=true)
 
 User (const std::string &uid, Server *srv, int objtype)
 
void InvalidateCache ()
 
bool IsAway () const
 
bool IsOper () const
 
bool IsNoticeMaskSet (unsigned char sm)
 
std::string GetModeLetters (bool includeparams=false) const
 
bool IsModeSet (unsigned char m) const
 
bool IsModeSet (const ModeHandler *mh) const
 
bool IsModeSet (const ModeHandler &mh) const
 
bool IsModeSet (UserModeReference &moderef) const
 
void SetMode (ModeHandler *mh, bool value)
 
void SetMode (ModeHandler &mh, bool value)
 
virtual bool HasPermission (const std::string &command)
 
virtual bool HasPrivPermission (const std::string &privstr, bool noisy=false)
 
virtual bool HasModePermission (const ModeHandler *mh) const
 
const std::string & MakeHost ()
 
const std::string & MakeHostIP ()
 
void Oper (OperInfo *info)
 
void UnOper ()
 
virtual void Write (const std::string &text)
 
virtual void Write (const char *text,...) CUSTOM_PRINTF(2
 
virtual void void WriteServ (const std::string &text)
 
void WriteServ (const char *text,...) CUSTOM_PRINTF(2
 
void void WriteCommand (const char *command, const std::string &text)
 
void WriteNotice (const std::string &text)
 
virtual void WriteRemoteNotice (const std::string &text)
 
virtual void WriteRemoteNumeric (const Numeric::Numeric &numeric)
 
template<typename T1 >
void WriteRemoteNumeric (unsigned int numeric, T1 p1)
 
template<typename T1 , typename T2 >
void WriteRemoteNumeric (unsigned int numeric, T1 p1, T2 p2)
 
template<typename T1 , typename T2 , typename T3 >
void WriteRemoteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
void WriteRemoteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3, T4 p4)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void WriteRemoteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
 
void WriteNumeric (const Numeric::Numeric &numeric)
 
template<typename T1 >
void WriteNumeric (unsigned int numeric, T1 p1)
 
template<typename T1 , typename T2 >
void WriteNumeric (unsigned int numeric, T1 p1, T2 p2)
 
template<typename T1 , typename T2 , typename T3 >
void WriteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
void WriteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3, T4 p4)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void WriteNumeric (unsigned int numeric, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
 
void WriteFrom (User *user, const std::string &text)
 
void WriteFrom (User *user, const char *text,...) CUSTOM_PRINTF(3
 
void void WriteCommonRaw (const std::string &line, bool include_self=true)
 
void WriteCommon (const char *text,...) CUSTOM_PRINTF(2
 
void void ForEachNeighbor (ForEachNeighborHandler &handler, bool include_self=true)
 
bool SharesChannelWith (User *other)
 
bool ChangeDisplayedHost (const std::string &host)
 
bool ChangeIdent (const std::string &newident)
 
bool ChangeName (const std::string &gecos)
 
bool ChangeNick (const std::string &newnick, time_t newts=0)
 
void PurgeEmptyChannels ()
 
virtual ~User ()
 
- Public Member Functions inherited from Extensible
const ExtensibleStoreGetExtList () const
 
void doUnhookExtensions (const std::vector< reference< ExtensionItem > > &toRemove)
 
void FreeAllExtItems ()
 

Additional Inherited Members

- Public Types inherited from User
typedef insp::intrusive_list< MembershipChanList
 
- Public Types inherited from Extensible
typedef insp::flat_map< reference< ExtensionItem >, void * > ExtensibleStore
 
- Public Attributes inherited from User
std::string host
 
time_t age
 
time_t signon
 
irc::sockets::sockaddrs client_sa
 
std::string nick
 
const std::string uuid
 
std::string ident
 
std::string dhost
 
std::string fullname
 
std::bitset< 64 > snomasks
 
ChanList chans
 
Serverserver
 
std::string awaymsg
 
time_t awaytime
 
reference< OperInfooper
 
unsigned int registered:3
 
unsigned int quitting:1
 
const unsigned int usertype:2
 

Member Function Documentation

◆ cull()

CullResult FakeUser::cull ( )
virtual

Called just prior to destruction via cull list.

Reimplemented from User.

◆ GetFullHost()

const std::string & FakeUser::GetFullHost ( )
virtual

Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in [email protected] form.

Returns
The full masked host of the user

Reimplemented from User.

◆ GetFullRealHost()

const std::string & FakeUser::GetFullRealHost ( )
virtual

Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in [email protected] form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.

Returns
The full real host of the user

Reimplemented from User.


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