summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bounce.h1
-rw-r--r--client.c5
-rw-r--r--pounce.11
3 files changed, 7 insertions, 0 deletions
diff --git a/bounce.h b/bounce.h
index e87d7bb..a4b1a91 100644
--- a/bounce.h
+++ b/bounce.h
@@ -78,6 +78,7 @@ static inline struct Message parse(char *line) {
 	X("multi-prefix", CapMultiPrefix) \
 	X("sasl", CapSASL) \
 	X("server-time", CapServerTime) \
+	X("setname", CapSetname) \
 	X("userhost-in-names", CapUserhostInNames) \
 	X("", CapUnsupported)
 
diff --git a/client.c b/client.c
index 61cd7d0..c472f51 100644
--- a/client.c
+++ b/client.c
@@ -464,6 +464,10 @@ static const char *filterMultiPrefix(const char *line) {
 	}
 }
 
+static const char *filterSetname(const char *line) {
+	return (wordcmp(line, 0, "SETNAME") ? line : NULL);
+}
+
 static const char *filterUserhostInNames(const char *line) {
 	if (wordcmp(line, 0, "353")) return line;
 	static regex_t regex;
@@ -490,6 +494,7 @@ static Filter *Filters[] = {
 	[CapLabeledResponseBit] = filterLabeledResponse,
 	[CapMessageTagsBit] = filterMessageTags,
 	[CapMultiPrefixBit] = filterMultiPrefix,
+	[CapSetnameBit] = filterSetname,
 	[CapUserhostInNamesBit] = filterUserhostInNames,
 };
 
diff --git a/pounce.1 b/pounce.1
index 470324d..58a0532 100644
--- a/pounce.1
+++ b/pounce.1
@@ -348,6 +348,7 @@ is supported:
 .Sy message-tags ,
 .Sy multi-prefix ,
 .Sy server-time ,
+.Sy setname ,
 .Sy userhost-in-names .
 .
 .Pp
/td>Show heat and other unread in titleJune McEnroe 2020-02-10Eliminate array in hashJune McEnroe I expected to have to remove some arbitrary colors, but it seems like just the range 2-75 works fine. 2020-02-10Add -HJune McEnroe 2020-02-10Hash to colors in the range 2-75June McEnroe Colors 76-87 seem too light, some almost appearing white. Colors 88-98 are shades of gray. 2020-02-10Improve color fudgingJune McEnroe Prevent fudged colors from ever being pure black. Distribute fudged colors between normal and bold if COLORS is 8. Fudge colors before checking if it's a pre-allocated pair. 2020-02-10Support all 99 IRC colorsJune McEnroe Corresponding ANSI colors from the table on ircdocs. 2020-02-10Avoid coloring mentions if there are control codesJune McEnroe This was breaking leading color codes. 2020-02-10Recalculate unreadLines on reflowJune McEnroe 2020-02-10Only make windows hotterJune McEnroe A warm message shouldn't clear a window's hotness. 2020-02-10Always increase unreadLinesJune McEnroe So that if you switch to a window and some new activity happens before you press M-u, it'll still jump to the right place. 2020-02-10Move scroll marker on resizeJune McEnroe 2020-02-10Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe But include a pair of parentheses in the URL itself. 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe