From 847291546199b3da1e8f8141fc5b0e630653b43d Mon Sep 17 00:00:00 2001 From: "viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 3 Sep 2008 23:58:28 +0000 Subject: BUILD : 1.7.21 (1428) BUGS : 930 NOTES : Rewrote the ignore system to handle both nicks and masks properly. git-svn-id: svn://svn.anope.org/anope/trunk@1428 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1143 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 4 +++- include/services.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index 4284b09de..a9a68a250 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1007,10 +1007,12 @@ E int defconParseModeString(const char *str); /**** process.c ****/ E int allow_ignore; -E IgnoreData *ignore[]; +E IgnoreData *ignore; E void add_ignore(const char *nick, time_t delta); E IgnoreData *get_ignore(const char *nick); +E int delete_ignore(const char *nick); +E int clear_ignores(); E int split_buf(char *buf, char ***argv, int colon_special); E void process(void); diff --git a/include/services.h b/include/services.h index 3d8ee2be1..e1376f1bb 100644 --- a/include/services.h +++ b/include/services.h @@ -1036,8 +1036,8 @@ struct c_elist_entry { /* Ignorance list data. */ typedef struct ignore_data { - struct ignore_data *next; - char who[NICKMAX]; + struct ignore_data *prev, *next; + char *mask; time_t time; /* When do we stop ignoring them? */ } IgnoreData; -- cgit