1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:26:39 +02:00

Changed Channel's BanData C-style linked list to std::list, got rid of shadowed variables in channels.cpp.

This commit is contained in:
Naram Qashat
2010-08-28 11:00:02 -04:00
parent 5fbe0c845c
commit 4cc6604326
4 changed files with 24 additions and 47 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ class CoreExport Channel : public Extensible, public Flags<ChannelFlags>
* @param name The channel name
* @param ts The time the channel was created
*/
Channel(const Anope::string &name, time_t ts = time(NULL));
Channel(const Anope::string &nname, time_t ts = time(NULL));
/** Default destructor
*/
@@ -97,7 +97,7 @@ class CoreExport Channel : public Extensible, public Flags<ChannelFlags>
/* List of users in the channel */
CUserList users;
BanData *bd;
std::list<BanData *> bd;
time_t server_modetime; /* Time of last server MODE */
time_t chanserv_modetime; /* Time of last check_modes() */
-2
View File
@@ -758,8 +758,6 @@ struct LevelInfo
struct BanData
{
BanData *next, *prev;
Anope::string mask; /* Since a nick is unsure and a User structure is unsafe */
time_t last_use; /* Since time is the only way to check whether it's still useful */
int16 ttb[TTB_SIZE];