diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
commit | b57c7f4e466f72fdd2ac3deca42caa1ea7748338 (patch) | |
tree | 3cbfe66354be62ddd22d7614e9d6116f465e807b /src/cull_list.cpp | |
parent | 694e307c09334c21aaf1a6c3f0b7b6d95440dd3e (diff) |
In the grand tradition of huge fucking commits:
- chanrec -> Channel
- userrec -> User
Enjoy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cull_list.cpp')
-rw-r--r-- | src/cull_list.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 0da622cb1..188c3a8e6 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -14,7 +14,7 @@ #include "inspircd.h" #include "cull_list.h" -CullItem::CullItem(userrec* u, std::string &r, const char* o_reason) +CullItem::CullItem(User* u, std::string &r, const char* o_reason) { this->user = u; this->reason = r; @@ -26,7 +26,7 @@ CullItem::CullItem(userrec* u, std::string &r, const char* o_reason) this->oper_reason = r; } -CullItem::CullItem(userrec* u, const char* r, const char* o_reason) +CullItem::CullItem(User* u, const char* r, const char* o_reason) { this->user = u; this->reason = r; @@ -52,7 +52,7 @@ CullItem::~CullItem() { } -userrec* CullItem::GetUser() +User* CullItem::GetUser() { return this->user; } @@ -73,13 +73,13 @@ CullList::CullList(InspIRCd* Instance) : ServerInstance(Instance) exempt.clear(); } -void CullList::AddItem(userrec* user, std::string &reason, const char* o_reason) +void CullList::AddItem(User* user, std::string &reason, const char* o_reason) { AddItem(user, reason.c_str(), o_reason); } -void CullList::AddItem(userrec* user, const char* reason, const char* o_reason) +void CullList::AddItem(User* user, const char* reason, const char* o_reason) { if (exempt.find(user) == exempt.end()) { @@ -89,7 +89,7 @@ void CullList::AddItem(userrec* user, const char* reason, const char* o_reason) } } -void CullList::MakeSilent(userrec* user) +void CullList::MakeSilent(User* user) { for (std::vector<CullItem>::iterator a = list.begin(); a != list.end(); ++a) { @@ -110,7 +110,7 @@ int CullList::Apply() std::vector<CullItem>::iterator a = list.begin(); user_hash::iterator iter = ServerInstance->clientlist->find(a->GetUser()->nick); - std::map<userrec*, userrec*>::iterator exemptiter = exempt.find(a->GetUser()); + std::map<User*, User*>::iterator exemptiter = exempt.find(a->GetUser()); const char* preset_reason = a->GetUser()->GetOperQuit(); std::string reason = a->GetReason(); std::string oper_reason = *preset_reason ? preset_reason : a->GetOperReason(); @@ -184,7 +184,7 @@ int CullList::Apply() { if (IS_LOCAL(a->GetUser())) { - std::vector<userrec*>::iterator x = find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),a->GetUser()); + std::vector<User*>::iterator x = find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),a->GetUser()); if (x != ServerInstance->local_users.end()) ServerInstance->local_users.erase(x); } |