Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Private Attributes | Static Private Attributes
User Class Reference

#include <users.h>

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

Public Types

typedef std::map
< Anope::string, Anope::string
ModeList
 
typedef std::map< Channel
*, ChanUserContainer * > 
ChanUserList
 

Public Member Functions

void ChangeNick (const Anope::string &newnick, time_t ts=Anope::CurTime)
 
void SetDisplayedHost (const Anope::string &host)
 
const Anope::stringGetDisplayedHost () const
 
void SetCloakedHost (const Anope::string &newhost)
 
const Anope::stringGetCloakedHost () const
 
const Anope::stringGetUID () const
 
void SetVIdent (const Anope::string &ident)
 
const Anope::stringGetVIdent () const
 
void SetIdent (const Anope::string &ident)
 
const Anope::stringGetIdent () const
 
Anope::string GetMask () const
 
Anope::string GetDisplayedMask () const
 
void SetRealname (const Anope::string &realname)
 
void SendMessage (BotInfo *source, const char *fmt,...)
 
void SendMessage (BotInfo *source, const Anope::string &msg) anope_override
 
void Identify (NickAlias *na)
 
void Login (NickCore *core)
 
void Logout ()
 
NickCoreAccount () const
 
bool IsIdentified (bool check_nick=false) const
 
bool IsRecognized (bool check_secure=true) const
 
bool IsServicesOper ()
 
bool HasCommand (const Anope::string &cmdstr)
 
bool HasPriv (const Anope::string &privstr)
 
void UpdateHost ()
 
bool HasMode (const Anope::string &name) const
 
void SetModeInternal (const MessageSource &setter, UserMode *um, const Anope::string &param="")
 
void RemoveModeInternal (const MessageSource &setter, UserMode *um)
 
void SetMode (BotInfo *bi, UserMode *um, const Anope::string &param="")
 
void SetMode (BotInfo *bi, const Anope::string &name, const Anope::string &param="")
 
void RemoveMode (BotInfo *bi, UserMode *um, const Anope::string &param="")
 
void RemoveMode (BotInfo *bi, const Anope::string &name, const Anope::string &param="")
 
void SetModes (BotInfo *bi, const char *umodes,...)
 
void SetModesInternal (const MessageSource &source, const char *umodes,...)
 
Anope::string GetModes () const
 
const ModeListGetModeList () const
 
ChanUserContainerFindChannel (Channel *c) const
 
bool IsProtected ()
 
void Kill (const MessageSource &source, const Anope::string &reason)
 
void KillInternal (const MessageSource &source, const Anope::string &reason)
 
void Quit (const Anope::string &reason="")
 
bool Quitting () const
 
Anope::string Mask () const
 
bool BadPassword ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 
- Public Member Functions inherited from Extensible
virtual ~Extensible ()
 
template<typename T >
T * GetExt (const Anope::string &name) const
 
bool HasExt (const Anope::string &name) const
 
template<typename T >
T * Extend (const Anope::string &name, const T &what)
 
template<typename T >
T * Extend (const Anope::string &name)
 
template<typename T >
T * Require (const Anope::string &name)
 
template<typename T >
void Shrink (const Anope::string &name)
 
template<>
bool * Extend (const Anope::string &name, const bool &what)
 
- Public Member Functions inherited from CommandReply
virtual ~CommandReply ()
 

Static Public Member Functions

static UserOnIntroduce (const Anope::string &snick, const Anope::string &sident, const Anope::string &shost, const Anope::string &svhost, const Anope::string &sip, Server *sserver, const Anope::string &srealname, time_t ts, const Anope::string &smodes, const Anope::string &suid, NickCore *nc)
 
static UserFind (const Anope::string &name, bool nick_only=false)
 
static void QuitUsers ()
 
- Static Public Member Functions inherited from Extensible
static void ExtensibleSerialize (const Extensible *, const Serializable *, Serialize::Data &data)
 
static void ExtensibleUnserialize (Extensible *, Serializable *, Serialize::Data &data)
 

Data Fields

Anope::string nick
 
Anope::string host
 
Anope::string vhost
 
Anope::string chost
 
Anope::string realname
 
Anope::string fingerprint
 
sockaddrs ip
 
Serverserver
 
time_t signon
 
time_t timestamp
 
bool super_admin
 
ChanUserList chans
 
time_t lastmemosend
 
time_t lastnickreg
 
time_t lastmail
 
- Data Fields inherited from Extensible
std::set< ExtensibleBase * > extension_items
 

Protected Member Functions

 User (const Anope::string &snick, const Anope::string &sident, const Anope::string &shost, const Anope::string &svhost, const Anope::string &sip, Server *sserver, const Anope::string &srealname, time_t ts, const Anope::string &smodes, const Anope::string &suid, NickCore *nc)
 
virtual ~User ()
 

Protected Attributes

Anope::string vident
 
Anope::string ident
 
Anope::string uid
 
bool on_access
 
ModeList modes
 
Serialize::Reference< NickCorenc
 
unsigned short invalid_pw_count
 
time_t invalid_pw_time
 

Private Attributes

bool quit
 

Static Private Attributes

static std::list< User * > quitting_users
 

Detailed Description

Definition at line 34 of file users.h.

Member Typedef Documentation

Definition at line 86 of file users.h.

Definition at line 42 of file users.h.

Constructor & Destructor Documentation

User::User ( const Anope::string snick,
const Anope::string sident,
const Anope::string shost,
const Anope::string svhost,
const Anope::string sip,
Server sserver,
const Anope::string srealname,
time_t  ts,
const Anope::string smodes,
const Anope::string suid,
NickCore nc 
)
protected

Create a new user object, initialising necessary fields and adds it to the hash

Parameters
snickThe nickname of the user.
sidentThe username of the user
shostThe hostname of the user
svhostThe vhost of the user
sipThe ip of the user
sserverThe server of the user
srealnameThe realname/gecos of teh user
tsUser's timestamp
smodesUser's modes
suidThe unique identifier of the user.
ncThe account the user is identified as, if any

Definition at line 36 of file users.cpp.

References Anope::string::c_str(), chost, Anope::CurTime, Anope::string::empty(), FOREACH_MOD, Server::GetName(), host, ident, invalid_pw_count, invalid_pw_time, Server::IsSynced(), Server::IsULined(), lastmail, lastmemosend, lastnickreg, LOG_DEBUG, Login(), MaxUserCount, MaxUserTime, nc, nick, on_access, quit, realname, server, SetModesInternal(), signon, super_admin, timestamp, uid, UpdateHost(), Server::users, and vhost.

Referenced by OnIntroduce().

User::~User ( )
protectedvirtual

Member Function Documentation

NickCore * User::Account ( ) const
bool User::BadPassword ( )

Notes the usage of an incorrect password. If too many incorrect passwords are used the user might be killed.

Returns
true if the user was killed

Definition at line 797 of file users.cpp.

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

Referenced by CommandOSLogin::Execute(), NSIdentifyRequest::OnFail(), NSGroupRequest::OnFail(), and NSRecoverRequest::OnFail().

void User::ChangeNick ( const Anope::string newnick,
time_t  ts = Anope::CurTime 
)

Update the nickname of a user record accordingly, should be called from ircd protocol.

Parameters
newnickThe new username
tsThe time the nick was changed, User::timestamp will be updated to this.

Definition at line 141 of file users.cpp.

References CollideKill(), Anope::CurTime, Anope::string::empty(), Anope::string::equals_ci(), NickAlias::Find(), FOREACH_MOD, IsIdentified(), IsRecognized(), NickAlias::last_seen, NickAlias::nc, nick, on_access, realname, super_admin, timestamp, and UpdateHost().

User * User::Find ( const Anope::string name,
bool  nick_only = false 
)
static

Finds a user by nick, or possibly UID

Parameters
nameThe nick, or possibly UID, to lookup
nick_onlyset to true to only look up by nick, not UID
Returns
the user, if they exist

Definition at line 815 of file users.cpp.

References IRCDProto::AmbiguousID, IRCD, and IRCDProto::RequiresID.

Referenced by Channel::ChangeTopic(), Channel::ChangeTopicInternal(), NickServCore::Collide(), CommandOSAKill::DoAdd(), CommandCSAccess::DoAdd(), CommandCSXOP::DoAdd(), CommandCSXOP::DoDel(), CommandCSAccess::DoDel(), CommandCSFlags::DoModify(), CommandCSMode::DoSet(), MyXMLRPCEvent::DoUser(), EOld::EOld(), CommandOSOLine::Execute(), CommandOSSVSNick::Execute(), CommandCSInvite::Execute(), CommandCSStatus::Execute(), CommandCSUnban::Execute(), CommandOSKick::Execute(), CommandOSKill::Execute(), CommandOSChanList::Execute(), CommandNSInfo::Execute(), CommandNSStatus::Execute(), CommandOSMode::Execute(), CommandCSKick::Execute(), CommandNSLogout::Execute(), CommandCSBan::Execute(), CommandCSUp::Execute(), CommandNSSuspend::Execute(), CommandOSSVSJoin::Execute(), CommandOSSVSPart::Execute(), CommandNSRecover::Execute(), CommandCSDown::Execute(), CommandOSUMode::Execute(), CommandNSUngroup::Execute(), CommandSeen::Execute(), CommandCSModes::Execute(), OSIgnoreService::Find(), Channel::KickInternal(), MessageSource::MessageSource(), HelpChannel::OnChannelModeSet(), HostServCore::OnDeleteVhost(), NickServCore::OnDelNick(), NickServCore::OnExpireTick(), OnIntroduce(), IdentifyInterface::OnResult(), OnIdentifyInterface::OnResult(), HostServCore::OnSetVhost(), NSRecoverRequest::OnSuccess(), MChanstats::OnTopicUpdated(), SASLService::ProcessMessage(), ProtoCharybdis::ProtoCharybdis(), ProtoInspIRCd20::ProtoInspIRCd20(), ProtoPlexus::ProtoPlexus(), ProtoRatbox::ProtoRatbox(), CommandOSIgnore::RealMask(), NickServCore::Release(), Channel::RemoveMode(), Channel::RemoveModeInternal(), Message::Invite::Run(), Message::Kill::Run(), Message::Mode::Run(), Message::Whois::Run(), IRCDMessageMode::Run(), IRCDMessageSJoin::Run(), IRCDMessageNJoin::Run(), IRCDMessageSVSMode::Run(), IRCDMessageEncap::Run(), IRCDMessageChgHost::Run(), IRCDMessageChgName::Run(), IRCDMessageChgIdent::Run(), IRCDMessageFJoin::Run(), IRCDMessageIdle::Run(), IRCDMessageMetadata::Run(), MemoServCore::Send(), InspIRCd12Proto::SendSWhois(), Channel::SetMode(), Channel::SetModeInternal(), Channel::SetModes(), Channel::SetModesInternal(), CommandSeen::SimpleSeen(), and IRCDProto::UID_Retrieve().

ChanUserContainer * User::FindChannel ( Channel c) const

Find the channel container for Channel c that the user is on This is preferred over using FindUser in Channel, as there are usually more users in a channel than channels a user is in

Parameters
cThe channel
Returns
The channel container, or NULL

Definition at line 716 of file users.cpp.

References chans.

Referenced by Channel::DeleteUser(), CommandCSUp::Execute(), CommandCSDown::Execute(), Channel::HasUserStatus(), Channel::KickInternal(), IRC2SQL::OnJoinChannel(), Channel::RemoveModeInternal(), Message::Part::Run(), and Channel::SetModeInternal().

const Anope::string & User::GetCloakedHost ( ) const

Get the cloaked host of a user

Returns
The cloaked host

Definition at line 225 of file users.cpp.

References chost.

Referenced by GetDisplayedHost(), NickCore::IsOnAccess(), and Entry::Matches().

const Anope::string & User::GetDisplayedHost ( ) const
Anope::string User::GetDisplayedMask ( ) const

Get the full display mask (nick!vident/chost)

Definition at line 274 of file users.cpp.

References GetDisplayedHost(), GetVIdent(), and nick.

Referenced by CommandCSKick::Execute(), CommandCSBan::Execute(), and ChanAccess::Matches().

const Anope::string & User::GetIdent ( ) const
Anope::string User::GetMask ( ) const
const User::ModeList & User::GetModeList ( ) const

Definition at line 711 of file users.cpp.

References modes.

Referenced by BotServCore::OnJoinChannel().

Anope::string User::GetModes ( ) const

Get modes set for this user.

Returns
A string of modes set on the user

Definition at line 692 of file users.cpp.

References ModeManager::FindUserModeByName(), Mode::mchar, and modes.

Referenced by IRC2SQL::OnUserConnect(), and IRC2SQL::OnUserModeSet().

const Anope::string & User::GetUID ( ) const
const Anope::string & User::GetVIdent ( ) const

Get the displayed ident (username) of this user.

Returns
The displayed ident of this user.

Definition at line 247 of file users.cpp.

References Anope::string::empty(), ident, and vident.

Referenced by MyXMLRPCEvent::DoUser(), GetDisplayedMask(), ChannelInfo::GetIdealBan(), Entry::Matches(), IRC2SQL::OnUserConnect(), and CSSeen::UpdateUser().

bool User::HasCommand ( const Anope::string cmdstr)

Check whether this user has access to run the given command string.

Parameters
cmdstrThe string to check, e.g. botserv/set/private.
Returns
True if this user may run the specified command, false otherwise.

Definition at line 480 of file users.cpp.

References IsServicesOper(), and nc.

Referenced by CommandSource::HasCommand().

bool User::HasMode ( const Anope::string name) const
bool User::HasPriv ( const Anope::string privstr)

Check whether this user has access to the given special permission.

Parameters
privstrThe priv to check for, e.g. users/auspex.
Returns
True if this user has the specified priv, false otherwise.

Definition at line 487 of file users.cpp.

References IsServicesOper(), and nc.

Referenced by CommandCSUnban::Execute(), CommandCSLog::Execute(), CommandSource::HasPriv(), IsProtected(), HelpChannel::OnChannelModeSet(), and MemoServCore::Send().

void User::Identify ( NickAlias na)
bool User::IsIdentified ( bool  check_nick = false) const

Check if the user is identified for their nick

Parameters
check_nickTrue to check if the user is identified to the nickname they are on too
Returns
true or false

Definition at line 427 of file users.cpp.

References NickAlias::Find(), NickAlias::nc, nc, and nick.

Referenced by ChangeNick(), CommandCSEnforce::DoRegOnly(), CommandNSStatus::Execute(), NickServCore::OnExpireTick(), NSCert::OnFingerprint(), NickServCore::OnServerSync(), NSIdentifyRequest::OnSuccess(), NickServCore::OnUserQuit(), MemoServCore::Send(), SetRealname(), and UpdateHost().

bool User::IsProtected ( )
bool User::IsRecognized ( bool  check_secure = true) const

Check if the user is recognized for their nick (on the nicks access list)

Parameters
check_secureOnly returns true if the user has secure off
Returns
true or false

Definition at line 438 of file users.cpp.

References NickAlias::Find(), NickAlias::nc, nick, and on_access.

Referenced by ChannelInfo::AccessFor(), ChangeNick(), CommandNSStatus::Execute(), NickServCore::OnExpireTick(), NickServCore::OnUserQuit(), SetRealname(), and UpdateHost().

bool User::IsServicesOper ( )

Check if the user is a services oper

Returns
true if they are an oper

Definition at line 451 of file users.cpp.

References EVENT_STOP, fingerprint, FOREACH_RESULT, GetIdent(), host, Anope::Match(), and nc.

Referenced by CommandNSLogout::Execute(), HasCommand(), HasPriv(), Identify(), CommandSource::IsServicesOper(), and SetModeInternal().

void User::Kill ( const MessageSource source,
const Anope::string reason 
)

Kill a user

Parameters
sourceThe user/server doing the kill
reasonThe reason for the kill

Definition at line 729 of file users.cpp.

References Anope::string::c_str(), MessageSource::GetName(), IRCD, and IRCDProto::SendSVSKill().

Referenced by BadPassword(), CollideKill(), CommandOSKill::Execute(), CommandOSNOOP::Execute(), CommandOSSNLine::OnAdd(), CommandOSSQLine::OnAdd(), and NSRecoverRequest::OnSuccess().

void User::KillInternal ( const MessageSource source,
const Anope::string reason 
)

Process a kill for a user

Parameters
sourceThe user/server doing the kill
reasonThe reason for the kill

Definition at line 736 of file users.cpp.

References MessageSource::GetName(), LOG_DEBUG, nick, quit, and Quit().

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

void User::Login ( NickCore core)

Login the user to an account

Parameters
coreThe account

Definition at line 391 of file users.cpp.

References FOREACH_MOD, Server::IsSynced(), Logout(), nc, server, UpdateHost(), and NickCore::users.

Referenced by Identify(), NSGroupRequest::OnSuccess(), NSRecoverRequest::OnSuccess(), IRCDMessageEncap::Run(), IRCDMessageMetadata::Run(), and User().

void User::Logout ( )
Anope::string User::Mask ( ) const
User * User::OnIntroduce ( const Anope::string snick,
const Anope::string sident,
const Anope::string shost,
const Anope::string svhost,
const Anope::string sip,
Server sserver,
const Anope::string srealname,
time_t  ts,
const Anope::string smodes,
const Anope::string suid,
NickCore nc 
)
static
void User::Quit ( const Anope::string reason = "")

Processes a quit for the user, and marks them as quit

Parameters
reasonThe reason for the quit

Definition at line 749 of file users.cpp.

References FOREACH_MOD, LOG_DEBUG, nick, quit, and quitting_users.

Referenced by CollideKill(), KillInternal(), NickServCore::Release(), Message::Quit::Run(), and Server::~Server().

bool User::Quitting ( ) const
void User::QuitUsers ( )
static

Quits all users who are pending to be quit

Definition at line 834 of file users.cpp.

References quitting_users.

Referenced by UplinkSocket::ProcessRead().

void User::RemoveMode ( BotInfo bi,
UserMode um,
const Anope::string param = "" 
)
void User::RemoveMode ( BotInfo bi,
const Anope::string name,
const Anope::string param = "" 
)

Remove a mode from the user

Parameters
biThe client setting the mode
nameThe mode name
paramOptional param for the mode

Definition at line 596 of file users.cpp.

References ModeManager::FindUserModeByName(), and RemoveMode().

void User::RemoveModeInternal ( const MessageSource setter,
UserMode um 
)

Remove a mode internally on the user, the IRCd is not informed

Parameters
setterwho/what is setting the mode
umThe user mode

Definition at line 554 of file users.cpp.

References Anope::string::clear(), FOREACH_MOD, modes, Mode::name, OperCount, UpdateHost(), and vhost.

Referenced by ProtoBahamut::OnUserNickChange(), ProtoHybrid::OnUserNickChange(), ProtoInspIRCd20::OnUserNickChange(), ProtoUnreal::OnUserNickChange(), RemoveMode(), and SetModesInternal().

void User::SendMessage ( BotInfo source,
const char *  fmt,
  ... 
)
void User::SendMessage ( BotInfo source,
const Anope::string msg 
)
virtual
void User::SetCloakedHost ( const Anope::string newhost)

Update the cloaked host of a user

Parameters
hostThe cloaked host

Definition at line 213 of file users.cpp.

References chost, Anope::string::empty(), and UpdateHost().

Referenced by IRCDMessageMetadata::Run(), and IRCDMessageSetHost::Run().

void User::SetDisplayedHost ( const Anope::string host)

Update the displayed (vhost) of a user record. This is used (if set) instead of real host.

Parameters
hostThe new displayed host to give the user.

Definition at line 189 of file users.cpp.

References Anope::string::empty(), FOREACH_MOD, UpdateHost(), and vhost.

Referenced by Identify(), IRCDMessageMetadata::Run(), IRCDMessageEncap::Run(), IRCDMessageChgHost::Run(), IRCDMessageSetHost::Run(), and SetModeInternal().

void User::SetIdent ( const Anope::string ident)

Update the real ident (username) of a user record.

Parameters
identThe new ident to give this user. NOTE: Where possible, you should use the Get/SetVIdent() equivilants.

Definition at line 255 of file users.cpp.

References ident, and UpdateHost().

Referenced by CommandBSBot::DoChange(), IRCDMessageEncap::Run(), and IRCDMessageChgIdent::Run().

void User::SetMode ( BotInfo bi,
UserMode um,
const Anope::string param = "" 
)

Set a mode on the user

Parameters
biThe client setting the mode
umThe user mode
ParamOptional param for the mode

Definition at line 573 of file users.cpp.

References HasMode(), Mode::name, SetModeInternal(), and ModeManager::StackerAdd().

Referenced by CommandOSOLine::Execute(), HelpChannel::OnChannelModeSet(), PlexusProto::SendJoin(), ngIRCdProto::SendJoin(), UnrealIRCdProto::SendJoin(), BahamutIRCdProto::SendJoin(), InspIRCd12Proto::SendJoin(), IRCDProto::SendOper(), SetMode(), and SetModes().

void User::SetMode ( BotInfo bi,
const Anope::string name,
const Anope::string param = "" 
)

Set a mode on the user

Parameters
biThe client setting the mode
nameThe mode name
ParamOptional param for the mode

Definition at line 582 of file users.cpp.

References ModeManager::FindUserModeByName(), and SetMode().

void User::SetModeInternal ( const MessageSource setter,
UserMode um,
const Anope::string param = "" 
)

Set a mode internally on the user, the IRCd is not informed

Parameters
setterwho/what is setting the mode
umThe user mode
ParamThe param, if there is one

Definition at line 518 of file users.cpp.

References IRCDProto::CanSetVHost, ModeManager::FindUserModeByName(), FOREACH_MOD, HasMode(), IRCD, IsServicesOper(), modes, Mode::name, nc, Anope::string::npos, OperCount, SendMessage(), IRCDProto::SendOper(), IRCDProto::SendVhost(), SetDisplayedHost(), SetModes(), and UpdateHost().

Referenced by SetMode(), and SetModesInternal().

void User::SetModes ( BotInfo bi,
const char *  umodes,
  ... 
)

Set a string of modes on a user

Parameters
biThe client setting the modes
umodesThe modes

Definition at line 601 of file users.cpp.

References BUFSIZE, ModeManager::FindUserModeByChar(), sepstream::GetToken(), Anope::string::length(), MODE_PARAM, RemoveMode(), SetMode(), and Mode::type.

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

void User::SetModesInternal ( const MessageSource source,
const char *  umodes,
  ... 
)
void User::SetRealname ( const Anope::string realname)
void User::SetVIdent ( const Anope::string ident)

Update the displayed ident (username) of a user record.

Parameters
identThe new ident to give this user.

Definition at line 238 of file users.cpp.

References UpdateHost(), and vident.

Referenced by CommandHSOn::Execute(), HostServCore::OnSetVhost(), IRCDMessageMetadata::Run(), IRCDMessageChgIdent::Run(), and IRCDMessageSetIdent::Run().

void User::UpdateHost ( )

Field Documentation

ChanUserList User::chans
Anope::string User::chost
Anope::string User::fingerprint
Anope::string User::host
Anope::string User::ident
protected

Definition at line 45 of file users.h.

Referenced by GetIdent(), GetMask(), GetVIdent(), BotInfo::Serialize(), SetIdent(), and User().

unsigned short User::invalid_pw_count
protected

Definition at line 55 of file users.h.

Referenced by BadPassword(), and User().

time_t User::invalid_pw_time
protected

Definition at line 57 of file users.h.

Referenced by BadPassword(), and User().

sockaddrs User::ip
time_t User::lastmail

Definition at line 94 of file users.h.

Referenced by Mail::Send(), and User().

time_t User::lastmemosend

Definition at line 90 of file users.h.

Referenced by CommandHSRequest::Execute(), MemoServCore::Send(), and User().

time_t User::lastnickreg
ModeList User::modes
protected

Definition at line 50 of file users.h.

Referenced by GetModeList(), GetModes(), HasMode(), RemoveModeInternal(), and SetModeInternal().

Serialize::Reference<NickCore> User::nc
protected
Anope::string User::nick

Definition at line 62 of file users.h.

Referenced by ChannelInfo::AccessFor(), ProxyConnect::Ban(), BotInfo::BotInfo(), ChangeNick(), Channel::ChangeTopic(), Channel::ChangeTopicInternal(), Channel::CheckKick(), NickServCore::Collide(), Channel::DeleteUser(), CommandBSBot::DoAdd(), CommandBSBot::DoChange(), MyXMLRPCEvent::DoChannel(), CommandBSBot::DoDel(), CommandCSLevels::DoDisable(), CommandMSSet::DoNotify(), MemoListCallback::DoRead(), CommandCSMode::DoSet(), CommandCSLevels::DoSet(), MyXMLRPCEvent::DoUser(), CommandBSBotList::Execute(), CommandHSOn::Execute(), CommandHSOff::Execute(), CommandBSAssign::Execute(), CommandCSStatus::Execute(), CommandNSUpdate::Execute(), CommandCSInvite::Execute(), CommandCSUnban::Execute(), CommandOSKick::Execute(), CommandOSKill::Execute(), CommandOSChanList::Execute(), CommandOSModInfo::Execute(), CommandCSKick::Execute(), CommandNSLogout::Execute(), CommandCSBan::Execute(), CommandBSInfo::Execute(), CommandCSUp::Execute(), CommandNSIdentify::Execute(), CommandOSOper::Execute(), CommandOSSVSJoin::Execute(), CommandNSGroup::Execute(), CommandCSLog::Execute(), CommandOSSVSPart::Execute(), CommandOSUserList::Execute(), CommandCSDown::Execute(), CommandOSUMode::Execute(), CommandOSForbid::Execute(), CommandBSSetPrivate::Execute(), CommandNSUngroup::Execute(), CommandSeen::Execute(), GetDisplayedMask(), GetMask(), MessageSource::GetName(), GetUID(), MemoInfo::HasIgnore(), Identify(), IsIdentified(), IsRecognized(), Channel::Kick(), Channel::KickInternal(), KillInternal(), LoadBots(), ModuleManager::LoadModule(), ChanAccess::Matches(), Entry::Matches(), ModuleWebCPanel::ModuleWebCPanel(), IRC2SQL::OnBotNotice(), OSForbid::OnCheckKick(), IRC2SQL::OnFingerprint(), CommandCSSetKeepTopic::OnHelp(), CommandCSRegister::OnHelp(), CommandCSSetAutoOp::OnHelp(), CommandNSSetHide::OnHelp(), CommandCSSetPrivate::OnHelp(), CommandNSSetPrivate::OnHelp(), CommandNSSASetHide::OnHelp(), CommandNSSASetPrivate::OnHelp(), CommandBSKickAMSG::OnHelp(), CommandNSSetAutoOp::OnHelp(), CommandNSSASetAutoOp::OnHelp(), CommandCSSetPeace::OnHelp(), CommandCSAKick::OnHelp(), CommandCSXOP::OnHelp(), CommandCSAccess::OnHelp(), CommandCSSetPersist::OnHelp(), CommandNSSetKill::OnHelp(), CommandNSSASetKill::OnHelp(), CommandNSSetSecure::OnHelp(), CommandNSSASetSecure::OnHelp(), BSAssign::OnInvite(), BotServCore::OnJoinChannel(), IRC2SQL::OnJoinChannel(), IRC2SQL::OnLeaveChannel(), DNSBLResolver::OnLookupComplete(), BotInfo::OnMessage(), NickServCore::OnNickIdentify(), MemoServCore::OnPostHelp(), NickServCore::OnPostHelp(), HostServCore::OnPreHelp(), GlobalCore::OnPreHelp(), BotServCore::OnPreHelp(), MemoServCore::OnPreHelp(), ChanServCore::OnPreHelp(), OperServCore::OnPreHelp(), NickServCore::OnPreHelp(), IdentifyInterface::OnResult(), SQLOperResult::OnResult(), OnIdentifyInterface::OnResult(), IRC2SQL::OnSetDisplayedHost(), NSGroupRequest::OnSuccess(), NSRecoverRequest::OnSuccess(), Command::OnSyntaxError(), IRC2SQL::OnUserConnect(), OSDefcon::OnUserConnect(), OSSession::OnUserConnect(), IRC2SQL::OnUserLogin(), IRC2SQL::OnUserModeSet(), OSNOOP::OnUserModeSet(), IRC2SQL::OnUserNickChange(), OSForbid::OnUserNickChange(), IRC2SQL::OnUserQuit(), NickServCore::OnUserQuit(), LogInfo::ProcessMessage(), Quit(), Channel::RemoveModeInternal(), req_send_memos(), Message::Privmsg::Run(), Command::Run(), Message::Whois::Run(), IRCDMessageJoin::Run(), MemoServCore::Send(), BotInfo::Serialize(), Server::Server(), Channel::SetCorrectModes(), Channel::SetModeInternal(), Channel::SetModesInternal(), BotInfo::SetNewNick(), SetRealname(), CommandSeen::SimpleSeen(), BotInfo::UnAssign(), BotInfo::Unserialize(), UpdateHost(), User(), NickServCore::Validate(), BotInfo::~BotInfo(), UplinkSocket::Message::~Message(), and ~User().

bool User::on_access
protected

Definition at line 48 of file users.h.

Referenced by ChangeNick(), IsRecognized(), UpdateHost(), and User().

bool User::quit
private

Definition at line 37 of file users.h.

Referenced by KillInternal(), Quit(), Quitting(), and User().

std::list< User * > User::quitting_users
staticprivate

Definition at line 39 of file users.h.

Referenced by Quit(), and QuitUsers().

Anope::string User::realname
Server* User::server
time_t User::signon
bool User::super_admin
time_t User::timestamp
Anope::string User::uid
protected

Definition at line 46 of file users.h.

Referenced by BotInfo::BotInfo(), BotInfo::GenerateUID(), GetUID(), User(), BotInfo::~BotInfo(), and ~User().

Anope::string User::vhost
Anope::string User::vident
protected

Definition at line 44 of file users.h.

Referenced by GetVIdent(), and SetVIdent().


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