0

I've provided a link to the c code below. I have an additional .h file which only contains the #define username and #define OAuth values. Since there private. The .h File also contain the function prototypes.

https://pastebin.com/xg6axTzn

char *JoinRoom = "JOIN #forsen\r\n";


if(send(TwitchSock,JoinRoom,sizeof(JoinRoom),0) < 0){
printError("Error With Send");
}

I know the code works. I get logged in because i get the returned data here https://dev.twitch.tv/docs/irc/guide

I will also recieve a 5 minute ping from Twitch which i can respond pong too. However, any attempts to join a room just dont work.

Ive tried several different ways. JOIN #Room, JOIN # Room, /JOIN #Room, /JOIN # Room etc.

After i send the join command the screen does not receive anything, until i get a ping request. Anyone know what may be causing the issue?

user1003967
  • 137
  • 2
  • 11

1 Answers1

1

I haven't looked too much into it but from what I get the request should be of this format: :<user>!<user>@<user>.tmi.twitch.tv JOIN #<channel>

https://dev.twitch.tv/docs/irc/membership#join-twitch-membership

Peri
  • 21
  • 4
  • You may be right. I was trying to copy from my c# bot and i may have left out a function that adds the format you specified to the start of messages. Ill check it out. Thanks – user1003967 Oct 19 '19 at 16:18