commit 4af64d6eefaf30e1bc649a67ad6b7e6a7dc0d55b
parent a4a707061382289f7a2e00e0569586456be11784
Author: Claudio Alessi <smoppy@gmail.com>
Date: Thu, 19 Apr 2018 22:21:57 +0200
Inform about wrong /topic usage.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/circo.c b/circo.c
@@ -312,7 +312,7 @@ cmd_rejoinall(char *cmd, char *s) {
for(b = buffers; b; b = b->next)
if(b->name[0] == '#' || b->name[0] == '&')
- sout("JOIN %s",b->name);
+ sout("JOIN %s", b->name);
}
void
@@ -354,6 +354,8 @@ cmd_topic(char *cmd, char *s) {
if(!*s) {
if(sel->name[0] == '#' || sel->name[0] == '&')
sout("TOPIC %s", sel->name);
+ else
+ bprintf(sel, "This is not a channel.\n");
return;
}
if(*s == '#' || *s == '&') {