using Tcmd successors more carefully - sic - simple irc client
 (HTM) git clone git://git.suckless.org/sic
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0a903a0c79d47885d6ecdb492988a6372665f1cb
 (DIR) parent 8edb0e23f4491a14a24883125a3a87b5392b56d1
 (HTM) Author: Anselm R. Garbe <arg@suckless.org>
       Date:   Wed, 31 Jan 2007 11:01:34 +0100
       
       using Tcmd successors more carefully
       Diffstat:
         M config.mk                           |       2 +-
         M sic.c                               |       5 +++--
       
       2 files changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/config.mk b/config.mk
       @@ -1,5 +1,5 @@
        # sic version
       -VERSION = 0.7
       +VERSION = 0.8
        
        # Customize below to fit your system
        
 (DIR) diff --git a/sic.c b/sic.c
       @@ -194,8 +194,9 @@ parsesrv(char *msg) {
                }
                else if(!strncmp("MODE", argv[Tcmd], 5))
                        snprintf(bufout, sizeof bufout, "-!- %s changed mode/%s -> %s %s",
       -                                argv[Tnick], argv[Tcmd + 1],
       -                                argv[Tcmd + 2], argv[Tcmd + 3]);
       +                                argv[Tnick], argv[Tcmd + 1] ? argv[Tcmd + 1] : "",
       +                                argv[Tcmd + 2] ? argv[Tcmd + 2] : "",
       +                                argv[Tcmd + 3] ? argv[Tcmd + 3] : "");
                else if(!strncmp("QUIT", argv[Tcmd], 5))
                        snprintf(bufout, sizeof bufout, "-!- %s(%s) has quit \"%s\"",
                                        argv[Tnick], argv[Tuser],