irctk

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

commit 3a6cf63b47498d59f2c763ec162e655e3f5dafbe
parent 1c0d39b84ec1799c2b0165790160449a732191cb
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 16 Jun 2012 12:19:07 +0200

better punctuation skip

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

diff --git a/irctk.c b/irctk.c @@ -813,8 +813,11 @@ void event_channel (irc_session_t * session, const char * event, const char * or pruned++; } - if (ok2) - pruned += 2; // skip the punctuation (TODO better) + if (ok2) { + pruned++; // skip ':' + while(pruned[0] == ' ') + pruned++; // skip spaces + } else pruned = params[1]; // no address printf("%s\n", pruned);