]> git.armaanb.net Git - sic.git/commitdiff
small changes, bigger simplifications are on its way
authorAnselm R. Garbe <arg@suckless.org>
Tue, 6 Feb 2007 15:42:17 +0000 (16:42 +0100)
committerAnselm R. Garbe <arg@suckless.org>
Tue, 6 Feb 2007 15:42:17 +0000 (16:42 +0100)
config.mk
sic.1
sic.c

index a97dc8b45d3d15f2914d67a84aea9bf7f6803001..56080461bcce6fd5dc7d5d8795df248901045986 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # sic version
-VERSION = 0.8
+VERSION = 0.9
 
 # Customize below to fit your system
 
diff --git a/sic.1 b/sic.1
index 3a1626bf27ad66fb66f6e82785eab677568025cc..6408571ff1c55115781e607625ed90bc4ac62536 100644 (file)
--- a/sic.1
+++ b/sic.1
@@ -36,19 +36,19 @@ Specify the real name (default is $USER)
 Prints version information to standard output, then exits.
 .SH COMMANDS
 .TP
-.B /j #channel
+.B :j #channel
 Join a channel
 .TP
-.B /l #channel
+.B :l #channel
 Leave a channel
 .TP
-.B /m #channel/user msg
+.B :m #channel/user msg
 Write a message to #channel/user
 .TP
-.B /s #channel/user
+.B :s #channel/user
 Set default channel/user
 .TP
-.B /t topic
+.B :t #channel topic
 Set the channel topic
 .TP
 Everything which is not a command will simply be posted into the channel or to
diff --git a/sic.c b/sic.c
index 668dd5cedc697ba868b51d8160f05c67fca6db42..b1f28137d1a0878d748282ef1becae69d5495407 100644 (file)
--- a/sic.c
+++ b/sic.c
@@ -67,14 +67,14 @@ parsein(char *msg) {
 
        if(msg[0] == 0)
                return;
-       if(msg[0] != '/') {
+       if(msg[0] != ':') {
                privmsg(channel, msg);
                return;
        }
        if(!strncmp(msg + 1, "j ", 2) && (msg[3] == '#'))
                snprintf(bufout, sizeof bufout, "JOIN %s\r\n", &msg[3]);
        else if(!strncmp(msg + 1, "l ", 2))
-               snprintf(bufout, sizeof bufout, "PART %s :sic\r\n", &msg[3]);
+               snprintf(bufout, sizeof bufout, "PART %s :sic - 300 LOC are too much!\r\n", &msg[3]);
        else if(!strncmp(msg + 1, "m ", 2)) {
                if((p = strchr(&msg[3], ' ')))
                        *(p++) = 0;
@@ -127,10 +127,8 @@ parsesrv(char *msg) {
 
        if(!msg || !(*msg))
                return;
-
        for(i = 0; i < Tlast; i++)
                argv[i] = NULL;
-
        /* <bufout>  ::= [':' <prefix> <SPACE> ] <command> <params> <crlf>
         * <prefix>   ::= <servername> | <nick> [ '!' <user> ] [ '@' <server> ]
         * <command>  ::= <letter> { <letter> } | <number> <number> <number>