[hackers] sic: new tip (= 67)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue, 06 Feb 2007 16:50:04 +0100

changeset: 67:9456471d4168
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Tue Feb 06 16:42:17 2007 +0100
files: config.mk sic.1 sic.c
description:
small changes, bigger simplifications are on its way

diff -r 02dde037c18c -r 9456471d4168 config.mk
--- a/config.mk Thu Feb 01 08:22:31 2007 +0100
+++ b/config.mk Tue Feb 06 16:42:17 2007 +0100
@@ -1,5 +1,5 @@
 # sic version
-VERSION = 0.8
+VERSION = 0.9
 
 # Customize below to fit your system
 
diff -r 02dde037c18c -r 9456471d4168 sic.1
--- a/sic.1 Thu Feb 01 08:22:31 2007 +0100
+++ b/sic.1 Tue Feb 06 16:42:17 2007 +0100
@@ -36,19 +36,19 @@ Prints version information to standard o
 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 -r 02dde037c18c -r 9456471d4168 sic.c
--- a/sic.c Thu Feb 01 08:22:31 2007 +0100
+++ b/sic.c Tue Feb 06 16:42:17 2007 +0100
@@ -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>
Received on Tue Feb 06 2007 - 16:50:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:56 UTC