irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit 80700e1850ace429cada23e4a39abcb34902d49f
parent d2d0030497a0a2a90ead8e58a725afbe6ef6b4a3
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 16 Jun 2012 18:27:01 +0200

fix prefix parsing

Diffstat:
irctk.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/irctk.c b/irctk.c @@ -994,10 +994,10 @@ int start (int max_wait) i++; if (!line[i]) die(E_BADLINE, "Malformed address prefix"); - msg = line + i; + msg = line + i + 1; if (msg[0] == ' ') msg++; - line[i-1] = 0; + line[i] = 0; cmd_msg(s, target, msg); strncpy(args.last_chans_out, target, MAX_LEN-1); } else {