about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 17:52:55 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 17:52:55 -0500
commitcc80fae758c392807dc0cea6ab2e7f78804b6712 (patch)
treefb286e04d037c3ffdee5703de8dd19c33ef87eba /chat.c
parentDefine ColorCap instead of hardcoding 100 (diff)
downloadcatgirl-cc80fae758c392807dc0cea6ab2e7f78804b6712.tar.gz
catgirl-cc80fae758c392807dc0cea6ab2e7f78804b6712.zip
Set self.nick to * initially
Allows removing a bunch of checks that self.nick is set, and it's what
the server usually calls you before registration.

Never highlight notices as mentions.
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index f854a33..afc3015 100644
--- a/chat.c
+++ b/chat.c
@@ -145,6 +145,7 @@ int main(int argc, char *argv[]) {
 	if (!user) user = nick;
 	if (!real) real = nick;
 
+	set(&self.nick, "*");
 	set(&self.network, host);
 	set(&self.chanTypes, "#&");
 	set(&self.prefixes, "@+");
/hilex.1?id=399db92745bcbaa8a9345eed26848d39dc3ea220&follow=1'>Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe These don't really go together, but... 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe Otherwise it ends up going into Shell state. 2021-01-18Allow matching lexers using first input lineJune McEnroe