#include <regchannel.h>
Inherits Serializable, and Extensible.

Definition at line 158 of file regchannel.h.
| typedef std::multimap<Anope::string, ModeLock *> ChannelInfo::ModeList |
Definition at line 173 of file regchannel.h.
| ChannelInfo::ChannelInfo | ( | const Anope::string & | chname | ) |
Constructor
| chname | The channel name |
Definition at line 262 of file regchannel.cpp.
References bantype, bi, ServerConfig::BSDefFlags, c, capsmin, capspercent, ServerConfig::ChanServ, Channel::ci, Config, ServerConfig::CSDefBantype, ServerConfig::CSDefFlags, Anope::CurTime, Anope::string::empty(), Extensible::ExtendMetadata(), Find(), floodlines, floodsecs, FOREACH_MOD, founder, I_OnCreateChan, last_topic_setter, last_topic_time, last_used, LOG_DEBUG, MemoInfo::memomax, memos, ServerConfig::MSMaxMemos, name, RegisteredChannelList, repeattimes, successor, time_registered, and ttb.
Referenced by Unserialize().
| ChannelInfo::ChannelInfo | ( | const ChannelInfo & | ci | ) |
Copy constructor
| ci | The ChannelInfo to copy settings to |
Definition at line 307 of file regchannel.cpp.
References access, ChanAccess::AccessSerialize(), ChanAccess::AccessUnserialize(), AddAccess(), AddAkick(), AddBadWord(), AutoKick::addtime, akick, badwords, LogSetting::ci, ChanAccess::ci, AccessProvider::Create(), ChanAccess::created, AutoKick::creator, ChanAccess::creator, founder, GetAccess(), GetAccessCount(), GetAkick(), GetAkickCount(), GetBadWord(), GetBadWordCount(), ChanAccess::last_seen, AutoKick::last_used, log_settings, AutoKick::mask, ChanAccess::mask, AutoKick::nc, ChanAccess::provider, AutoKick::reason, ttb, BadWord::type, and BadWord::word.
| ChannelInfo::~ChannelInfo | ( | ) |
Definition at line 361 of file regchannel.cpp.
References bi, c, Channel::ci, ClearAccess(), ClearAkick(), ClearBadWords(), Channel::FindUser(), FOREACH_MOD, founder, MemoInfo::GetMemo(), I_OnDelChan, LOG_DEBUG, log_settings, MemoInfo::memos, memos, mode_locks, name, RegisteredChannelList, SetFounder(), and SetSuccessor().
| AccessGroup ChannelInfo::AccessFor | ( | const User * | u | ) |
Retrieve the access for a user or group in the form of a vector of access entries (as multiple entries can affect a single user).
Definition at line 577 of file regchannel.cpp.
References User::Account(), AccessGroup::ci, Anope::CurTime, Find(), AccessGroup::founder, GetAccess(), GetAccessCount(), IsFounder(), User::IsRecognized(), last_used, AccessGroup::nc, NickAlias::nc, User::nick, User::super_admin, and AccessGroup::super_admin.
Referenced by CommandSource::AccessFor(), CommandCSAKick::DoAdd(), CommandCSEnforce::DoLimit(), CommandCSEnforce::DoRestricted(), CommandCSMode::DoSet(), CommandNSAList::Execute(), CommandCSStatus::Execute(), CommandCSKick::Execute(), CommandCSBan::Execute(), NSAJoin::OnNickIdentify(), BSKick::OnPrivmsg(), WebCPanel::NickServ::Alist::OnRequest(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::ChanServ::Info::OnRequest(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), MyMemoServService::Send(), and ExpireCallback::Tick().
| AccessGroup ChannelInfo::AccessFor | ( | const NickCore * | nc | ) |
Definition at line 612 of file regchannel.cpp.
References AccessGroup::ci, Anope::CurTime, founder, AccessGroup::founder, GetAccess(), GetAccessCount(), last_used, ChanAccess::Matches(), and AccessGroup::nc.
| void ChannelInfo::AddAccess | ( | ChanAccess * | access | ) |
Add an entry to the channel access list
| access | The entry |
Definition at line 558 of file regchannel.cpp.
References access, Find(), ChanAccess::mask, and NickAlias::nc.
Referenced by ChannelInfo(), XOPBase::DoAdd(), CommandCSAccess::DoAdd(), CommandCSFlags::DoModify(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), WebCPanel::ChanServ::Access::OnRequest(), and ChanAccess::Unserialize().
| AutoKick * ChannelInfo::AddAkick | ( | const Anope::string & | user, | |
| const Anope::string & | mask, | |||
| const Anope::string & | reason, | |||
| time_t | t = Anope::CurTime, |
|||
| time_t | lu = 0 | |||
| ) |
Add an akick entry to the channel by reason
| user | The user who added the akick | |
| mask | The mask of the akick | |
| reason | The reason for the akick | |
| t | The time the akick was added, defaults to now | |
| lu | The time the akick was last used, defaults to never |
Definition at line 671 of file regchannel.cpp.
References AutoKick::addtime, akick, AutoKick, AutoKick::ci, AutoKick::creator, AutoKick::last_used, AutoKick::mask, AutoKick::nc, and AutoKick::reason.
| AutoKick * ChannelInfo::AddAkick | ( | const Anope::string & | user, | |
| NickCore * | akicknc, | |||
| const Anope::string & | reason, | |||
| time_t | t = Anope::CurTime, |
|||
| time_t | lu = 0 | |||
| ) |
Add an akick entry to the channel by NickCore
| user | The user who added the akick | |
| akicknc | The nickcore being akicked | |
| reason | The reason for the akick | |
| t | The time the akick was added, defaults to now | |
| lu | The time the akick was last used, defaults to never |
Definition at line 654 of file regchannel.cpp.
References NickCore::AddChannelReference(), AutoKick::addtime, akick, AutoKick, AutoKick::ci, AutoKick::creator, AutoKick::last_used, AutoKick::nc, and AutoKick::reason.
Referenced by ChannelInfo(), CommandCSAKick::DoAdd(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), and AutoKick::Unserialize().
| BadWord * ChannelInfo::AddBadWord | ( | const Anope::string & | word, | |
| BadWordType | type | |||
| ) |
Add a badword to the badword list
| word | The badword | |
| type | The type (SINGLE START END) |
Definition at line 716 of file regchannel.cpp.
References BadWord, badwords, BadWord::ci, FOREACH_MOD, I_OnBadWordAdd, BadWord::type, and BadWord::word.
Referenced by ChannelInfo(), CommandBSBadwords::DoAdd(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), and BadWord::Unserialize().
| bool ChannelInfo::CheckKick | ( | User * | user | ) |
Check whether a user is permitted to be on this channel
| u | The user |
Definition at line 957 of file regchannel.cpp.
References User::Account(), bi, c, Anope::string::c_str(), Anope::string::empty(), EVENT_STOP, Channel::FindUser(), FOREACH_RESULT, GetIdealBan(), Extensible::HasExt(), Channel::Hold(), I_OnCheckKick, User::IsProtected(), Server::IsULined(), Channel::Kick(), LOG_DEBUG, name, User::nick, User::server, Channel::SetMode(), User::super_admin, Language::Translate(), and Channel::users.
Referenced by CommandCSAKick::DoEnforce().
| void ChannelInfo::CheckTopic | ( | ) |
Check the channel topic If topic lock is enabled will change the topic back, else it records the new topic in the ChannelInfo
Definition at line 1010 of file regchannel.cpp.
References c, Channel::ChangeTopic(), Extensible::HasExt(), last_topic, last_topic_setter, last_topic_time, Channel::topic, Channel::topic_setter, and Channel::topic_ts.
| void ChannelInfo::ClearAccess | ( | ) |
Clear the entire channel access list
Clears the entire access list by deleting every item and then clearing the vector.
Definition at line 648 of file regchannel.cpp.
References access, and GetAccess().
Referenced by CommandCSFlags::DoClear(), CommandCSAccess::DoClear(), and ~ChannelInfo().
| void ChannelInfo::ClearAkick | ( | ) |
Clear the whole akick list
Definition at line 710 of file regchannel.cpp.
References akick.
Referenced by CommandCSAKick::DoClear(), CommandCSClone::Execute(), and ~ChannelInfo().
| void ChannelInfo::ClearBadWords | ( | ) |
Clear all badwords from the channel
Definition at line 755 of file regchannel.cpp.
References badwords.
Referenced by CommandBSBadwords::DoClear(), CommandCSClone::Execute(), and ~ChannelInfo().
| void ChannelInfo::ClearLevels | ( | ) |
Clear all privileges from the channel
Definition at line 1067 of file regchannel.cpp.
References levels.
Referenced by reset_levels().
| void ChannelInfo::ClearMLock | ( | ) |
Clear all mlocks on the channel
Definition at line 888 of file regchannel.cpp.
References mode_locks.
Referenced by LoadChanInfo().
| void ChannelInfo::EraseAccess | ( | unsigned | index | ) |
Erase an entry from the channel access list
| index | The index in the access list vector |
Clears the memory used by the given access entry and removes it from the vector.
Definition at line 640 of file regchannel.cpp.
References access.
Referenced by XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoClear(), XOPBase::DoDel(), CommandCSAccess::DoDel(), and ChanServCore::OnDelCore().
| void ChannelInfo::EraseAkick | ( | unsigned | index | ) |
Erase an entry from the channel akick list
| index | The index of the akick |
Definition at line 702 of file regchannel.cpp.
References akick, and GetAkick().
Referenced by CommandCSAKick::DoDel(), and ChanServCore::OnDelCore().
| void ChannelInfo::EraseBadWord | ( | unsigned | index | ) |
Remove a badword
| index | The index of the badword |
Definition at line 745 of file regchannel.cpp.
References badwords, FOREACH_MOD, and I_OnBadWordDel.
Referenced by CommandBSBadwords::DoDelete(), and BadwordsDelCallback::HandleNumber().
| ChannelInfo * ChannelInfo::Find | ( | const Anope::string & | name | ) | [static] |
Finds a ChannelInfo
| name | channel name to lookup |
Definition at line 1091 of file regchannel.cpp.
References RegisteredChannelList.
Referenced by AccessFor(), AddAccess(), ChannelInfo(), CommandMSSet::DoLimit(), XOPBase::DoXop(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSIgnore::Execute(), CommandMSDel::Execute(), CommandMSCancel::Execute(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSUnSuspend::Execute(), CommandCSSuspend::Execute(), CommandCSStatus::Execute(), CommandCSSetMisc::Execute(), CommandCSSASetNoexpire::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSecureOps::Execute(), CommandCSSetSecureFounder::Execute(), CommandCSSetSecure::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetPrivate::Execute(), CommandCSSetPersist::Execute(), CommandCSSetPeace::Execute(), CommandCSSetKeepTopic::Execute(), CommandCSSetFounder::Execute(), CommandCSSetDescription::Execute(), CommandCSSetChanstats::Execute(), CommandCSSetBanType::Execute(), CommandCSSetAutoOp::Execute(), CommandCSRegister::Execute(), CommandCSMode::Execute(), CommandCSLog::Execute(), CommandCSKick::Execute(), CommandCSInfo::Execute(), CommandCSGetKey::Execute(), CommandCSFlags::Execute(), CommandEntryMessage::Execute(), CommandCSEnforce::Execute(), CommandCSDrop::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandCSAKick::Execute(), CommandCSLevels::Execute(), CommandCSAccess::Execute(), CommandBSSetNoBot::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSKick::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSBadwords::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), MemoInfo::GetMemoInfo(), NSAJoin::OnNickIdentify(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), ReadDatabase(), MyMemoServService::Send(), ShouldHide(), Unserialize(), LogSetting::Unserialize(), ModeLock::Unserialize(), AutoKick::Unserialize(), BadWord::Unserialize(), ChanAccess::Unserialize(), CSMiscData::Unserialize(), and EntryMsg::Unserialize().
| ChanAccess * ChannelInfo::GetAccess | ( | unsigned | index | ) | const |
Get an entry from the channel access list by index
| index | The index in the access list vector |
Retrieves an entry from the access list that matches the given index.
Definition at line 567 of file regchannel.cpp.
References access, and Serializable::QueueUpdate().
Referenced by AccessFor(), ChannelInfo(), ClearAccess(), XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoClear(), XOPBase::DoDel(), CommandCSAccess::DoDel(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandCSFlags::DoModify(), CommandCSClone::Execute(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Access::OnRequest(), DBPlain::OnSaveDatabase(), and CommandCSAccess::ProcessList().
| unsigned ChannelInfo::GetAccessCount | ( | ) | const |
Get the size of the accss vector for this channel
Definition at line 635 of file regchannel.cpp.
References access.
Referenced by AccessFor(), ChannelInfo(), XOPBase::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoClear(), XOPBase::DoDel(), CommandCSAccess::DoDel(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandCSAccess::DoList(), CommandCSFlags::DoModify(), CommandCSAccess::DoView(), CommandCSClone::Execute(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Access::OnRequest(), DBPlain::OnSaveDatabase(), and CommandCSAccess::ProcessList().
| AutoKick * ChannelInfo::GetAkick | ( | unsigned | index | ) | const |
Get an entry from the channel akick list
| index | The index in the akick vector |
Definition at line 687 of file regchannel.cpp.
References akick, and Serializable::QueueUpdate().
Referenced by ChannelInfo(), CommandCSAKick::DoAdd(), CommandCSAKick::DoDel(), EraseAkick(), CommandCSStatus::Execute(), CommandCSClone::Execute(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Akick::OnRequest(), DBPlain::OnSaveDatabase(), and CommandCSAKick::ProcessList().
| unsigned ChannelInfo::GetAkickCount | ( | ) | const |
Get the size of the akick vector for this channel
Definition at line 697 of file regchannel.cpp.
References akick.
Referenced by ChannelInfo(), CommandCSAKick::DoAdd(), CommandCSAKick::DoDel(), CommandCSAKick::DoList(), CommandCSAKick::DoView(), CommandCSStatus::Execute(), CommandCSClone::Execute(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Akick::OnRequest(), DBPlain::OnSaveDatabase(), and CommandCSAKick::ProcessList().
| BadWord * ChannelInfo::GetBadWord | ( | unsigned | index | ) | const |
Get a badword structure by index
| index | The index |
Definition at line 730 of file regchannel.cpp.
References badwords, and Serializable::QueueUpdate().
Referenced by ChannelInfo(), CommandBSBadwords::DoAdd(), CommandBSBadwords::DoDelete(), CommandBSBadwords::DoList(), CommandCSClone::Execute(), BadwordsDelCallback::HandleNumber(), BSKick::OnPrivmsg(), and DBPlain::OnSaveDatabase().
| unsigned ChannelInfo::GetBadWordCount | ( | ) | const |
Get how many badwords are on this channel
Definition at line 740 of file regchannel.cpp.
References badwords.
Referenced by ChannelInfo(), CommandBSBadwords::DoAdd(), CommandBSBadwords::DoDelete(), CommandBSBadwords::DoList(), CommandCSClone::Execute(), BadwordsDelCallback::HandleNumber(), BSKick::OnPrivmsg(), and DBPlain::OnSaveDatabase().
| NickCore * ChannelInfo::GetFounder | ( | ) | const |
Get the founder of the channel
Definition at line 528 of file regchannel.cpp.
References founder.
Referenced by CommandCSAKick::DoAdd(), CommandNSAList::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetFounder::Execute(), CommandCSInfo::Execute(), CommandCSDrop::Execute(), IsFounder(), CommandSource::IsFounder(), ChanServCore::OnDelCore(), WebCPanel::NickServ::Alist::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), DBPlain::OnSaveDatabase(), and ExpireCallback::Tick().
| Anope::string ChannelInfo::GetIdealBan | ( | User * | u | ) | const |
Gets a ban mask for the given user based on the bantype of the channel.
| u | The user |
Definition at line 1072 of file regchannel.cpp.
References bantype, User::GetDisplayedHost(), User::GetVIdent(), and User::Mask().
Referenced by BSKick::check_ban(), CheckKick(), CommandCSEnforce::DoRegOnly(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSSLOnly(), and CommandCSBan::Execute().
| int16_t ChannelInfo::GetLevel | ( | const Anope::string & | priv | ) | const |
Get the level for a privilege
| priv | The privilege name |
| CoreException | if priv is not a valid privilege |
Definition at line 1043 of file regchannel.cpp.
References PrivilegeManager::FindPrivilege(), levels, and LOG_DEBUG.
Referenced by CommandCSLevels::DoList(), AccessGroup::HasPriv(), and DBPlain::OnSaveDatabase().
| const ModeLock * ChannelInfo::GetMLock | ( | const Anope::string & | mname, | |
| const Anope::string & | param = "" | |||
| ) |
Get details for a specific mlock
| mname | The mode name | |
| An | optional param to match with |
Definition at line 908 of file regchannel.cpp.
References Anope::string::empty(), Anope::Match(), and mode_locks.
| const ChannelInfo::ModeList & ChannelInfo::GetMLock | ( | ) | const |
Get all of the mlocks for this channel
Definition at line 895 of file regchannel.cpp.
References mode_locks.
Referenced by CommandCSMode::DoLock(), CommandCSInfo::Execute(), GetMLockAsString(), and DBPlain::OnSaveDatabase().
| Anope::string ChannelInfo::GetMLockAsString | ( | bool | complete | ) | const |
Get the current mode locks as a string
| complete | True to show mlock parameters aswell |
Definition at line 929 of file regchannel.cpp.
References Anope::string::clear(), Anope::string::empty(), ModeManager::FindChannelModeByName(), GetMLock(), Anope::string::length(), Mode::mchar, MODE_LIST, MODE_STATUS, ModeLock::name, ModeLock::param, ModeLock::set, and Mode::type.
Referenced by CommandCSMode::DoLock(), and CommandCSInfo::Execute().
| std::pair< ChannelInfo::ModeList::iterator, ChannelInfo::ModeList::iterator > ChannelInfo::GetModeList | ( | const Anope::string & | name | ) |
Get a list of modes on a channel
| Name | The mode name to get a list of |
Definition at line 900 of file regchannel.cpp.
References mode_locks.
| NickCore * ChannelInfo::GetSuccessor | ( | ) | const |
Definition at line 542 of file regchannel.cpp.
References successor.
Referenced by CommandNSAList::Execute(), CommandCSSetSuccessor::Execute(), CommandCSInfo::Execute(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Set::OnRequest(), and DBPlain::OnSaveDatabase().
| bool ChannelInfo::HasMLock | ( | ChannelMode * | mode, | |
| const Anope::string & | param, | |||
| bool | status | |||
| ) | const |
Check if a mode is mlocked
| mode | The mode | |
| An | optional param | |
| status | True to check mlock on, false for mlock off |
Definition at line 761 of file regchannel.cpp.
References mode_locks, MODE_REGULAR, Mode::name, ModeLock::param, and Mode::type.
| void ChannelInfo::RemoveLevel | ( | const Anope::string & | priv | ) |
Remove a privilege from the channel
| priv | The privilege |
Definition at line 1062 of file regchannel.cpp.
References levels.
| void ChannelInfo::RemoveMLock | ( | ModeLock * | mlock | ) |
Definition at line 876 of file regchannel.cpp.
References mode_locks, and ModeLock::name.
| bool ChannelInfo::RemoveMLock | ( | ChannelMode * | mode, | |
| bool | status, | |||
| const Anope::string & | param = "" | |||
| ) |
Remove a mlock
| mode | The mode | |
| status | True for mlock on, false for mlock off | |
| param | The param of the mode, required if it is a list or status mode |
Definition at line 826 of file regchannel.cpp.
References EVENT_STOP, FOREACH_RESULT, I_OnUnMLock, mode_locks, MODE_PARAM, MODE_REGULAR, Mode::name, ModeLock::param, ModeLock::set, and Mode::type.
Referenced by CommandCSMode::DoLock(), and CommandCSSetPersist::Execute().
| void ChannelInfo::RestoreTopic | ( | ) |
Restore the channel topic, used on channel creation when not syncing with the uplink and after uplink sync
Definition at line 1032 of file regchannel.cpp.
References c, Channel::ChangeTopic(), Anope::CurTime, Anope::string::empty(), Extensible::HasExt(), last_topic, last_topic_setter, last_topic_time, User::nick, Channel::topic, and WhoSends().
| void ChannelInfo::Serialize | ( | Serialize::Data & | data | ) | const |
Definition at line 401 of file regchannel.cpp.
References bantype, bi, capsmin, capspercent, desc, Extensible::ExtensibleSerialize(), floodlines, floodsecs, founder, MemoInfo::ignores, last_topic, last_topic_setter, last_topic_time, last_used, levels, MemoInfo::memomax, memos, name, repeattimes, stringify(), successor, time_registered, and ttb.
| void ChannelInfo::SetFounder | ( | NickCore * | nc | ) |
Change the founder of the channek nc The new founder
Definition at line 511 of file regchannel.cpp.
References founder.
Referenced by CommandCSSetFounder::Execute(), CommandCSRegister::Execute(), LoadChannels(), OnDatabaseReadMetadata(), ChanServCore::OnDelCore(), and ~ChannelInfo().
| void ChannelInfo::SetLevel | ( | const Anope::string & | priv, | |
| int16_t | level | |||
| ) |
Set the level for a privilege
| priv | The privilege priv | |
| level | The new level |
Definition at line 1057 of file regchannel.cpp.
References levels.
Referenced by CommandCSLevels::DoDisable(), CommandCSLevels::DoSet(), LoadChannels(), OnDatabaseReadMetadata(), and reset_levels().
| bool ChannelInfo::SetMLock | ( | ChannelMode * | mode, | |
| bool | status, | |||
| const Anope::string & | param = "", |
|||
| Anope::string | setter = "", |
|||
| time_t | created = Anope::CurTime | |||
| ) |
Set a mlock
| mode | The mode | |
| status | True for mlock on, false for mlock off | |
| param | An optional param arg for + mlocked modes | |
| setter | Who is setting the mlock | |
| created | When the mlock was created |
Definition at line 784 of file regchannel.cpp.
References Anope::string::empty(), EVENT_STOP, FOREACH_RESULT, founder, I_OnMLock, mode_locks, MODE_PARAM, MODE_REGULAR, Mode::name, ModeLock::param, and Mode::type.
Referenced by CommandCSMode::DoLock(), CommandCSSetPersist::Execute(), CommandCSRegister::Execute(), and process_mlock().
| void ChannelInfo::SetSuccessor | ( | NickCore * | nc | ) |
Definition at line 533 of file regchannel.cpp.
References successor.
Referenced by CommandCSSetSuccessor::Execute(), LoadChannels(), OnDatabaseReadMetadata(), ChanServCore::OnDelCore(), and ~ChannelInfo().
| Serializable * ChannelInfo::Unserialize | ( | Serializable * | obj, | |
| Serialize::Data & | data | |||
| ) | [static] |
Definition at line 436 of file regchannel.cpp.
References anope_dynamic_static_cast(), BotInfo::Assign(), bi, ChannelInfo(), Find(), NickCore::Find(), and sepstream::GetToken().
Referenced by Serialize::RegisterTypes().
| BotInfo * ChannelInfo::WhoSends | ( | ) | const |
Find which bot should send mode/topic/etc changes for this channel
Definition at line 547 of file regchannel.cpp.
References bi, BotListByNick, and ChanServ.
Referenced by CommandCSKick::Execute(), CommandCSInvite::Execute(), CommandCSBan::Execute(), RestoreTopic(), and Server::Sync().
friend class AutoKick [friend] |
Definition at line 170 of file regchannel.h.
Referenced by AddAkick().
friend struct BadWord [friend] |
Definition at line 171 of file regchannel.h.
Referenced by AddBadWord().
friend class ChanAccess [friend] |
Definition at line 169 of file regchannel.h.
Serialize::Checker<std::vector<ChanAccess *> > ChannelInfo::access [private] |
Definition at line 163 of file regchannel.h.
Referenced by AddAccess(), ChannelInfo(), ClearAccess(), EraseAccess(), GetAccess(), and GetAccessCount().
Serialize::Checker<std::vector<AutoKick *> > ChannelInfo::akick [private] |
Definition at line 164 of file regchannel.h.
Referenced by AddAkick(), ChannelInfo(), ClearAkick(), EraseAkick(), GetAkick(), and GetAkickCount().
Serialize::Checker<std::vector<BadWord *> > ChannelInfo::badwords [private] |
Definition at line 165 of file regchannel.h.
Referenced by AddBadWord(), ChannelInfo(), ClearBadWords(), EraseBadWord(), GetBadWord(), and GetBadWordCount().
| int16_t ChannelInfo::bantype |
Definition at line 187 of file regchannel.h.
Referenced by ChannelInfo(), CommandCSSetBanType::Execute(), CommandCSInfo::Execute(), GetIdealBan(), LoadChannels(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), and Serialize().
Definition at line 194 of file regchannel.h.
Referenced by BotInfo::Assign(), BSKick::bot_kick(), ChannelInfo(), CheckKick(), CommandCSSetPersist::Execute(), CommandCSClone::Execute(), CommandBSSetNoBot::Execute(), CommandBSKick::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), BotInfo::GetChannelCount(), LoadChannels(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), BotInfo::RejoinAll(), CommandBSInfo::send_bot_channels(), Serialize(), Server::Sync(), BotInfo::UnAssign(), Unserialize(), WhoSends(), BotInfo::~BotInfo(), and ~ChannelInfo().
Definition at line 191 of file regchannel.h.
Referenced by CommandCSTopic::Append(), BotInfo::Assign(), BSKick::bot_kick(), ChannelInfo(), BSKick::check_ban(), CheckKick(), CheckTopic(), CommandCSAKick::DoAdd(), CommandCSEnforce::DoBans(), CommandCSAKick::DoEnforce(), CommandCSEnforce::DoLimit(), CommandCSMode::DoLock(), CommandCSEnforce::DoRegOnly(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSMode::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSSuspend::Execute(), CommandCSSetPersist::Execute(), CommandCSMode::Execute(), CommandCSInfo::Execute(), CommandCSGetKey::Execute(), CommandCSEnforce::Execute(), CommandCSDrop::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandCSAccess::ProcessList(), BotInfo::RejoinAll(), RestoreTopic(), MyMemoServService::Send(), CommandCSTopic::Set(), Server::Sync(), ExpireCallback::Tick(), BotInfo::UnAssign(), and ~ChannelInfo().
| int16_t ChannelInfo::capsmin |
Definition at line 197 of file regchannel.h.
Referenced by ChannelInfo(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), BSKick::OnPrivmsg(), DBPlain::OnSaveDatabase(), and Serialize().
| int16_t ChannelInfo::capspercent |
Definition at line 197 of file regchannel.h.
Referenced by ChannelInfo(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), BSKick::OnPrivmsg(), DBPlain::OnSaveDatabase(), and Serialize().
Definition at line 178 of file regchannel.h.
Referenced by CommandCSSetDescription::Execute(), CommandCSRegister::Execute(), CommandCSList::Execute(), CommandCSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), and Serialize().
| int16_t ChannelInfo::floodlines |
Definition at line 198 of file regchannel.h.
Referenced by ChannelInfo(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), BSKick::OnPrivmsg(), DBPlain::OnSaveDatabase(), and Serialize().
| int16_t ChannelInfo::floodsecs |
Definition at line 198 of file regchannel.h.
Referenced by ChannelInfo(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), BSKick::OnPrivmsg(), DBPlain::OnSaveDatabase(), and Serialize().
Serialize::Reference<NickCore> ChannelInfo::founder [private] |
Definition at line 161 of file regchannel.h.
Referenced by AccessFor(), ChannelInfo(), GetFounder(), Serialize(), SetFounder(), SetMLock(), and ~ChannelInfo().
Definition at line 183 of file regchannel.h.
Referenced by CommandCSTopic::Append(), CheckTopic(), CommandCSRegister::Execute(), CommandCSInfo::Execute(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), WebCPanel::ChanServ::Set::OnRequest(), DBPlain::OnSaveDatabase(), RestoreTopic(), and Serialize().
Definition at line 184 of file regchannel.h.
Referenced by ChannelInfo(), CheckTopic(), CommandCSRegister::Execute(), CommandCSInfo::Execute(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), WebCPanel::ChanServ::Set::OnRequest(), DBPlain::OnSaveDatabase(), RestoreTopic(), and Serialize().
| time_t ChannelInfo::last_topic_time |
Definition at line 185 of file regchannel.h.
Referenced by ChannelInfo(), CheckTopic(), CommandCSRegister::Execute(), CommandCSClone::Execute(), LoadChannels(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), RestoreTopic(), and Serialize().
| time_t ChannelInfo::last_used |
Definition at line 181 of file regchannel.h.
Referenced by AccessFor(), ChannelInfo(), CommandCSInfo::Execute(), LoadChanInfo(), LoadChannels(), WebCPanel::ChanServ::Set::OnRequest(), DBPlain::OnSaveDatabase(), Serialize(), and ExpireCallback::Tick().
std::map<Anope::string, int16_t> ChannelInfo::levels [private] |
Definition at line 166 of file regchannel.h.
Referenced by ClearLevels(), GetLevel(), RemoveLevel(), Serialize(), and SetLevel().
| Serialize::Checker<std::vector<LogSetting *> > ChannelInfo::log_settings |
Definition at line 175 of file regchannel.h.
Referenced by ChannelInfo(), CommandCSLog::Execute(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), LogSetting::Unserialize(), and ~ChannelInfo().
Definition at line 189 of file regchannel.h.
Referenced by ChannelInfo(), CommandMSSet::DoLimit(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSDel::Execute(), MemoInfo::GetMemoInfo(), LoadChannels(), OnDatabaseReadMetadata(), WebCPanel::MemoServ::Memos::OnRequest(), DBPlain::OnSaveDatabase(), Serialize(), and ~ChannelInfo().
Definition at line 174 of file regchannel.h.
Referenced by ClearMLock(), GetMLock(), GetModeList(), HasMLock(), OnDatabaseReadMetadata(), RemoveMLock(), SetMLock(), ModeLock::Unserialize(), and ~ChannelInfo().
Definition at line 177 of file regchannel.h.
Referenced by CommandCSTopic::Append(), Log::BuildPrefix(), ChannelInfo(), CheckKick(), XOPBase::DoAdd(), CommandEntryMessage::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), CommandBSBadwords::DoAdd(), CommandCSEnforce::DoBans(), XOPBase::DoClear(), CommandCSFlags::DoClear(), CommandEntryMessage::DoClear(), CommandCSAKick::DoClear(), CommandCSAccess::DoClear(), XOPBase::DoDel(), CommandEntryMessage::DoDel(), CommandCSAKick::DoDel(), CommandCSAccess::DoDel(), CommandBSBadwords::DoDelete(), CommandCSLevels::DoDisable(), CommandCSAKick::DoEnforce(), CommandCSEnforce::DoLimit(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSAKick::DoList(), CommandCSLevels::DoList(), CommandCSAccess::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandCSFlags::DoModify(), MemoListCallback::DoRead(), CommandCSEnforce::DoRegOnly(), CommandCSLevels::DoReset(), CommandCSEnforce::DoRestricted(), CommandCSEnforce::DoSecureOps(), CommandCSLevels::DoSet(), CommandCSEnforce::DoSSLOnly(), CommandCSAKick::DoView(), CommandCSAccess::DoView(), CommandNSAList::Execute(), CommandMSList::Execute(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSUnSuspend::Execute(), CommandCSSuspend::Execute(), CommandCSStatus::Execute(), CommandCSSetMisc::Execute(), CommandCSSASetNoexpire::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSecureOps::Execute(), CommandCSSetSecureFounder::Execute(), CommandCSSetSecure::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetPrivate::Execute(), CommandCSSetPersist::Execute(), CommandCSSetPeace::Execute(), CommandCSSetKeepTopic::Execute(), CommandCSSetFounder::Execute(), CommandCSSetDescription::Execute(), CommandCSSetBanType::Execute(), CommandCSSetAutoOp::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandCSEnforce::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandBSSetNoBot::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), LoadChanInfo(), LoadChannels(), CommandCSTopic::Lock(), Log::Log(), OnDatabaseReadMetadata(), ChanServCore::OnDelCore(), BSKick::OnPrivmsg(), WebCPanel::NickServ::Alist::OnRequest(), WebCPanel::MemoServ::Memos::OnRequest(), WebCPanel::ChanServ::Set::OnRequest(), WebCPanel::ChanServ::Info::OnRequest(), WebCPanel::ChanServ::Drop::OnRequest(), WebCPanel::ChanServ::Akick::OnRequest(), WebCPanel::ChanServ::Access::OnRequest(), DBPlain::OnSaveDatabase(), CommandCSAKick::ProcessList(), CommandCSAccess::ProcessList(), MyMemoServService::Send(), CommandBSInfo::send_bot_channels(), Serialize(), Server::Sync(), ExpireCallback::Tick(), CommandCSTopic::Unlock(), BadwordsDelCallback::~BadwordsDelCallback(), and ~ChannelInfo().
| int16_t ChannelInfo::repeattimes |
Definition at line 199 of file regchannel.h.
Referenced by ChannelInfo(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), BSKick::OnPrivmsg(), DBPlain::OnSaveDatabase(), and Serialize().
Serialize::Reference<NickCore> ChannelInfo::successor [private] |
Definition at line 162 of file regchannel.h.
Referenced by ChannelInfo(), GetSuccessor(), Serialize(), and SetSuccessor().
| time_t ChannelInfo::time_registered |
Definition at line 180 of file regchannel.h.
Referenced by ChannelInfo(), CommandCSInfo::Execute(), LoadChanInfo(), LoadChannels(), WebCPanel::ChanServ::Set::OnRequest(), DBPlain::OnSaveDatabase(), Serialize(), and Server::Sync().
| int16_t ChannelInfo::ttb[TTB_SIZE] |
Definition at line 195 of file regchannel.h.
Referenced by ChannelInfo(), BSKick::check_ban(), CommandBSKick::Execute(), CommandBSInfo::Execute(), LoadChannels(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), and Serialize().
1.7.1