commit 564c36b0047e7c23452c7090a41f7e60a9c8b77c
parent a7b7c5d16b8d07b22f32c697b7f5b310f4bb5129
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 24 Aug 2022 22:04:51 +0200
Fix names counting in nicklist()
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/circo.c b/circo.c
@@ -1142,6 +1142,8 @@ void
nicklist(Buffer *b, char *list) {
char *p, *np;
+ freenames(&b->names);
+ b->totnames = 0;
for(p = list, np = skip(list, ' '); *p; p = np, np = skip(np, ' ')) {
/* skip nick flags */
switch(*p) {
@@ -1153,9 +1155,6 @@ nicklist(Buffer *b, char *list) {
++p;
break;
}
- /* nick is already in list */
- if(nickget(b, p))
- continue;
nickadd(b, p);
}
}