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:
+2
-2
@@ -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() */
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user