about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-16 13:30:59 -0500
committerJune McEnroe <june@causal.agency>2021-01-16 13:36:39 -0500
commit5a490945ea221cc94b05e2ed6e872a2ecbefe175 (patch)
treedaf471ca256c4112e78c9ff35795609e96fa969b /chat.h
parentRemove join/part/quit ignore example (diff)
downloadcatgirl-5a490945ea221cc94b05e2ed6e872a2ecbefe175.tar.gz
catgirl-5a490945ea221cc94b05e2ed6e872a2ecbefe175.zip
Rename ignore code to filter
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/chat.h b/chat.h
index e027fa5..1b1c338 100644
--- a/chat.h
+++ b/chat.h
@@ -361,17 +361,18 @@ void urlCopyMatch(uint id, const char *str);
 int urlSave(FILE *file);
 void urlLoad(FILE *file, size_t version);
 
-enum { IgnoreCap = 64 };
-extern struct Ignore {
+enum { FilterCap = 64 };
+extern struct Filter {
+	enum Heat heat;
 	char *mask;
 	char *cmd;
 	char *chan;
 	char *mesg;
-} ignores[IgnoreCap];
-struct Ignore ignoreParse(char *pattern);
-struct Ignore ignoreAdd(const char *pattern);
-bool ignoreRemove(struct Ignore ignore);
-enum Heat ignoreCheck(enum Heat heat, uint id, const struct Message *msg);
+} filters[FilterCap];
+struct Filter filterParse(enum Heat heat, char *pattern);
+struct Filter filterAdd(enum Heat heat, const char *pattern);
+bool filterRemove(struct Filter filter);
+enum Heat filterCheck(enum Heat heat, uint id, const struct Message *msg);
 
 extern bool logEnable;
 void logFormat(uint id, const time_t *time, const char *format, ...)
lass='nohover-highlight'> 2020-04-29Turn URLs into HTML linksJune McEnroe 2020-04-28Clean up html.cJune McEnroe 2020-04-27Style groups in recipientsJune McEnroe Can't actually test this oops. 2020-04-27Clean up export.cJune McEnroe 2020-04-27Clean up decode.cJune McEnroe 2020-04-26Free orderJune McEnroe Oops 2. 2020-04-26Clean up atom.c and fix base URLsJune McEnroe Base URL should not be URL escaped! 2020-04-26Clean up archive.cJune McEnroe 2020-04-26Add -q to exit non-zero on early exitJune McEnroe 2020-04-26Rearrange some of archive.hJune McEnroe 2020-04-26Free part.parts.ptrJune McEnroe Oops. 2020-04-26Rename part->id to part->contentIDJune McEnroe Disambiguate with messageID. 2020-04-26Iterate through nested multiparts to find content for AtomJune McEnroe Also fixes content for multipart/signed. 2020-04-26Include Cc address in reply mailtosJune McEnroe 2020-04-26Use %R for RFC numbers in STANDARDS sectionJune McEnroe 2020-04-26Add mailto spec to STANDARDSJune McEnroe 2020-04-26Increase space between nav itemsJune McEnroe 2020-04-26Add mailto address for the archiveJune McEnroe 2020-04-26Put dates on new lines in indexJune McEnroe 2020-04-26Include <> around Message-Id in mailto: URLsJune McEnroe 2020-04-26Add link to index on thread pagesJune McEnroe 2020-04-26Fall back to Content-Type name parameter for attachmentsJune McEnroe 2020-04-26Remove margins in article.message headerJune McEnroe 2020-04-26Generate index.atomJune McEnroe 2020-04-26Generate XHTML content in Atom entriesJune McEnroe 2020-04-25Style index pageJune McEnroe 2020-04-25Render index.htmlJune McEnroe 2020-04-25Wrap <summary> replies count in <data>June McEnroe 2020-04-25Accumulate thread envelopes before concatenationJune McEnroe 2020-04-24Free envelope in concatDataJune McEnroe 2020-04-24Use replyTo address in mailto:June McEnroe 2020-04-23Wrap quoted lines in <q>June McEnroe