summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-29 23:34:39 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-29 23:34:39 -0400
commit5ed69ed67821fb1d84d82fd31d4729c8d8657f53 (patch)
tree57f58976d54fec722d5985d91b4dd42ac3033d71 /include
parentabfc9926dbe0b9dd00c060a9e4ebcc53e60e6709 (diff)
Used std::list for ignore's IgnoreData instead of using the old C-style double-linked list, also removed the addition of an ignore when a command "takes too long".
Diffstat (limited to 'include')
-rw-r--r--include/extern.h2
-rw-r--r--include/services.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index e4a87d1d2..4fafd494e 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -327,7 +327,7 @@ E bool is_on_access(User *u, NickCore *nc);
/**** process.c ****/
E int allow_ignore;
-E IgnoreData *ignore;
+E std::list<IgnoreData *> ignore;
E void add_ignore(const Anope::string &nick, time_t delta);
E IgnoreData *get_ignore(const Anope::string &nick);
diff --git a/include/services.h b/include/services.h
index acf6a4ea5..e48ba1924 100644
--- a/include/services.h
+++ b/include/services.h
@@ -777,7 +777,6 @@ struct EList
struct IgnoreData
{
- IgnoreData *prev, *next;
Anope::string mask;
time_t time; /* When do we stop ignoring them? */
};