irctk

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

commit 6b066bd8c1bdbf70f1b1d0bcac235e20691c6548
parent 5735936f5d211b34c6713cec973f8c2bfaeee379
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 10 Aug 2012 00:54:23 +0200

update internal nick on renames

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

diff --git a/irctk.c b/irctk.c @@ -1333,6 +1333,8 @@ void event_nick (irc_session_t *session, const char *event, const char *origin, debug("[] <%s> /nick %s\n", origin, params[0]); saw_user(origin); rename_user(&fifos, origin, params[0]); + if (!strcmp(origin, args.nick)) + strncpy(args.nick, params[0], MAX_NICK_LEN-1); if (args.event_to == COMMAND) mprintf("[] <%s> /nick %s\n", output_nick(origin), params[0]); if (args.event_to == MESSAGE)