circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 81b25be6f1f1148052aa0027a7e5f02ad335e1d4
parent bb07c6cc2ec6dc7f63f1fa4c921e5a947ac53e8b
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Wed, 24 Aug 2022 00:14:02 +0200

Fix prefixes when look for nick flags in nicklist()

Diffstat:
Mcirco.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -1140,8 +1140,15 @@ nicklist(Buffer *b, char *list) { for(p = list, np = skip(list, ' '); *p; p = np, np = skip(np, ' ')) { /* skip nick flags */ - if(!isalnum(*p)) + switch(*p) { + case '+': + case '@': + case '~': + case '%': + case '&': ++p; + break; + } /* nick is already in list */ if(nickget(b, p)) continue;