From 7efdd7fc9599d9882bfc29db5f889cc2d3447e23 Mon Sep 17 00:00:00 2001 From: SteelTermite Date: Sat, 22 Feb 2014 22:07:50 +0100 Subject: [PATCH] reset channel buffer after leaving saved channel --- sic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sic.c b/sic.c index d93c2ec..444c3ed 100644 --- a/sic.c +++ b/sic.c @@ -1,4 +1,4 @@ - /* See LICENSE file for license details. */ +/* See LICENSE file for license details. */ #include #include #include @@ -84,6 +84,8 @@ parsein(char *s) { if(!*p) p = "sic - 250 LOC are too much!"; sout("PART %s :%s", s, p); + if (s == channel || !strcmp(s, channel)) + channel[0] = '\0'; return; case 'm': s = eat(p, isspace, 1); -- 1.9.0