circo

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

commit 33a0e553577b98de0e4c7b0681bcbbd963f81b64
parent ae05606e2bba2f91cc4ccfdb42e5fd18e0547345
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 12 Aug 2017 22:10:25 +0200

Check empty chan in recv_join()

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

diff --git a/circo.c b/circo.c @@ -750,7 +750,7 @@ parsesrv(void) { printb(sel, "! Remote host closed connection.\n"); return; } - //printb(sel, "DEBUG | buf=%s\n", buf); + //printb(sel, "DEBUG | buf=%s", buf); cmd = buf; usr = host; if(!cmd || !*cmd) @@ -823,6 +823,8 @@ void recv_join(char *who, char *chan, char *txt) { Buffer *b; + if(!*chan) + return; if(!strcmp(who, nick)) { sel = newbuf(chan); b = sel;