]> git.armaanb.net Git - sic.git/commitdiff
setting the topic must not be supported, its a trivial IRC command (*and rarely used...
authorAnselm R. Garbe <arg@suckless.org>
Tue, 13 Feb 2007 15:14:52 +0000 (16:14 +0100)
committerAnselm R. Garbe <arg@suckless.org>
Tue, 13 Feb 2007 15:14:52 +0000 (16:14 +0100)
sic.1
sic.c

diff --git a/sic.1 b/sic.1
index ee6da16f22536b8007ab8b6c5d0a63d8fde46e54..a71037224c27653979373d895ef4bac697c1a93f 100644 (file)
--- a/sic.1
+++ b/sic.1
@@ -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 --git a/sic.c b/sic.c
index 795b4bb0985bdc20e2804a50f1508c42667a46d4..77c6a29a4a2202799f52899743fe40b2485fac94 100644 (file)
--- a/sic.c
+++ b/sic.c
@@ -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));