setting the topic must not be supported, its a trivial IRC command (*and rarely used btw*) - sic - simple irc client
(HTM) git clone git://git.suckless.org/sic
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 82946e102dd8ca48b8a8df710c20bef94c649af0
(DIR) parent 7ef7529687d3e15aee3fe7fb6e6dceb3027ffd92
(HTM) Author: Anselm R. Garbe <arg@suckless.org>
Date: Tue, 13 Feb 2007 16:14:52 +0100
setting the topic must not be supported, its a trivial IRC command (*and rarely used btw*)
Diffstat:
M sic.1 | 3 ---
M sic.c | 5 -----
2 files changed, 0 insertions(+), 8 deletions(-)
---
(DIR) diff --git 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.
(DIR) diff --git 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));