[hackers] [sic] setting the topic must not be supported, its a trivial IRC command (*and rarely used btw*)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue Feb 13 16:16:40 2007

changeset: 85:96eb1bfede5b
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Tue Feb 13 16:14:52 2007 +0100
summary: setting the topic must not be supported, its a trivial IRC command (*and rarely used btw*)

diff -r 4d27af581d96 -r 96eb1bfede5b sic.1
--- a/sic.1 Tue Feb 13 16:06:28 2007 +0100
+++ b/sic.1 Tue Feb 13 16:14:52 2007 +0100
@@ -44,7 +44,4 @@ Write a message to #channel/user
 .B :s #channel/user
 Set default channel/user
 .TP
-.B :t #channel topic
-Set the channel topic
-.TP
 Everything which is not a command is simply send the server.
diff -r 4d27af581d96 -r 96eb1bfede5b sic.c
--- a/sic.c Tue Feb 13 16:06:28 2007 +0100
+++ b/sic.c Tue Feb 13 16:14:52 2007 +0100
@@ -95,11 +95,6 @@ parsein(char *msg) {
                 strncpy(channel, msg + 3, sizeof channel);
                 return;
         }
- else if(!strncmp(msg + 1, "t ", 2)) {
- if((p = strchr(msg + 3, ' ')))
- *(p++) = 0;
- snprintf(bufout, sizeof bufout, "TOPIC %s :%s\r\n", msg + 3, p);
- }
         else
                 snprintf(bufout, sizeof bufout, "%s\r\n", msg + 1);
         write(srv, bufout, strlen(bufout));
Received on Tue Feb 13 2007 - 16:16:40 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:16 UTC