circo

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

commit 2c8741ab1437ca20d248bd84d0eb8d8d770d2727
parent 3f1b26d8d7171f362d4f6753e8630bf717978c4f
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sun, 23 Jul 2017 20:26:25 +0200

Quick fix for incoming PRIVMSG.

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

diff --git a/circo.c b/circo.c @@ -289,14 +289,14 @@ cmd_topic(char *cmd, char *s) { } else { if(sel == status) { - printb(sel, "Cannot set topic of the status.\n"); + printb(sel, "Usage: /%s [channel] [text]\n", cmd); return; } chan = sel->name; txt = s; } if(!*txt) { - printb(sel, "Usage: /%s [channel] text\n", cmd); + sout("TOPIC %s", chan); return; } sout("TOPIC %s :%s", chan, txt); @@ -633,7 +633,8 @@ parsesrv(void) { trim(txt); trim(par); if(!strcmp("PRIVMSG", cmd)) { - if(strcmp(nick, usr)) + printb(sel, "DEBUG | nick=%s par=%s usr=%s txt=%s\n", nick, par, usr, txt); + if(!strcmp(nick, par)) par = usr; b = getbuf(par); if(!b)