Open ItsBrando opened 6 years ago
Yeah, I would guess that it may be due to your username’s format. It’s been quite a while since I worked on OVRTC so I’m not sure. That said, I’m also not sure when I can patch this, but I’ll look into it regardless.
Oh don’t worry about it I changed my name on twitch thanks anyways though :)
sounds like a simple string conversion in the right place might do it, if you point me to the file I can give it a go @Hotrian
@joseph-allen this one handles the actual Twitch procedures but may not be the one causing issues with the trailing underscore.
i think this is the submission not the chat itself? same as issue 29
I have the same issue with my channel. Channel has two underscores in name, and will not connect.
Issue lies in the TwitchChatTester.cs. Seems like this routine splits the string by "_" to capitalize the first letter. This doesn't work for channel names with "_" in it, since it cannot capitalize ""
public static string ChannelFirstLetterToUpper(string str) { if (str == null) return null;
var endsWith_ = str.EndsWith("_");
if (endsWith_) str = str.Substring(0, str.Length - 1);
if (str.Length <= 1) return str.ToUpper();
var pieces = str.Split('_');
var st = "";
for (var i = 0; i < pieces.Length; i++)
{
st += char.ToUpper(pieces[i][0]) + pieces[i].Substring(1);
if (i < pieces.Length - 1)
st += "_";
}
if (endsWith_) st += "_";
return st;
}
Thanks for bringing that up @agwosdz, I'll look into this as soon as I can.
I cant connect to my twitch account to read my chat, i can connect to other ones just not mine, im not sure if its because of the two underscores in my name or what. Account- ItsBrando__