setting the topic must not be supported, its a trivial IRC command (*and rarely used btw*)
This commit is contained in:
parent
7ef7529687
commit
82946e102d
3
sic.1
3
sic.1
@ -44,7 +44,4 @@ Write a message to #channel/user
|
|||||||
.B :s #channel/user
|
.B :s #channel/user
|
||||||
Set default channel/user
|
Set default channel/user
|
||||||
.TP
|
.TP
|
||||||
.B :t #channel topic
|
|
||||||
Set the channel topic
|
|
||||||
.TP
|
|
||||||
Everything which is not a command is simply send the server.
|
Everything which is not a command is simply send the server.
|
||||||
|
5
sic.c
5
sic.c
@ -95,11 +95,6 @@ parsein(char *msg) {
|
|||||||
strncpy(channel, msg + 3, sizeof channel);
|
strncpy(channel, msg + 3, sizeof channel);
|
||||||
return;
|
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
|
else
|
||||||
snprintf(bufout, sizeof bufout, "%s\r\n", msg + 1);
|
snprintf(bufout, sizeof bufout, "%s\r\n", msg + 1);
|
||||||
write(srv, bufout, strlen(bufout));
|
write(srv, bufout, strlen(bufout));
|
||||||
|
Loading…
Reference in New Issue
Block a user