From 4cc660432675bdbb67018aa27f3b1ea896918dce Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Sat, 28 Aug 2010 11:00:02 -0400 Subject: Changed Channel's BanData C-style linked list to std::list, got rid of shadowed variables in channels.cpp. --- include/channels.h | 4 ++-- include/services.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index 7a02b3d6b..d1e82fa8d 100644 --- a/include/channels.h +++ b/include/channels.h @@ -77,7 +77,7 @@ class CoreExport Channel : public Extensible, public Flags * @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 /* List of users in the channel */ CUserList users; - BanData *bd; + std::list bd; time_t server_modetime; /* Time of last server MODE */ time_t chanserv_modetime; /* Time of last check_modes() */ diff --git a/include/services.h b/include/services.h index d663c0a84..f8f37be6e 100644 --- a/include/services.h +++ b/include/services.h @@ -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]; -- cgit