Skip to content

Commit 32d1447

Browse files
committed
Response fix.
1 parent ac484e5 commit 32d1447

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ char* Unsub(char buffer[BUFFER_SIZE]) // Unsubscribes client from specified chan
331331
char* Sub(char buffer[BUFFER_SIZE])
332332
{
333333
char* id = GetIdFromBuffer(buffer, 3, 4);
334+
335+
334336
if(ValidID(id) < 0) // Return if invalid id.
335337
return replace_str("Invalid channel: xxx\n","xxx",id);
336338

@@ -716,7 +718,7 @@ int main(int argc, char * argv[])
716718
else if(strstr(bufferg, "LIVESTREAM") != NULL)
717719
{
718720
LiveStream(newsockfd, bufferg);
719-
msg = "IGNORE";
721+
msg = "";
720722
}
721723

722724
else

0 commit comments

Comments
 (0)