Daktyl198 Posted August 26, 2013 Share Posted August 26, 2013 I'm stuck here... I can make the bot do pretty much everything BUT join channels with keys. From what I've read, joining a channel with a key is just the usual join command with the key following the channel name, e.g: fwrite($socket, "JOIN :#channel channelkey\r\n"); But that fails and tells me that there are invalid characters in the channel name; I'm assuming that means the space and everything that comes after it... So how do I get it to join a channel with a key and not bug out? Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted August 26, 2013 Share Posted August 26, 2013 Not sure, but I don't think there should be a colon : there. Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 26, 2013 Share Posted August 26, 2013 Looking at 4.2.1 here, it looks like it should be: fwrite($socket, "JOIN #channel; channelkey\r\n"); Quote Link to comment Share on other sites More sharing options...
Daktyl198 Posted August 26, 2013 Author Share Posted August 26, 2013 Looking at 4.2.1 here, it looks like it should be: fwrite($socket, "JOIN #channel; channelkey\r\n"); No, that's to join the channel "#channel;" including the ; in the channel name. Looking at that, it seems like my code: fwrite($socket, "JOIN :#channel channelkey\r\n"); would be the right answer... Yet I get an error Quote Link to comment Share on other sites More sharing options...
Andy-H Posted August 26, 2013 Share Posted August 26, 2013 Does the channel name actually contain a colon? Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted August 26, 2013 Share Posted August 26, 2013 fwrite($socket, "JOIN #channel channelkey\r\n"); Quote Link to comment Share on other sites More sharing options...
Daktyl198 Posted August 26, 2013 Author Share Posted August 26, 2013 (edited) fwrite($socket, "JOIN :#channel channelkey\r\n"); The above code works perfectly for any channel without a key... I'll try without the colon. It works!! To think it was something so simple O__O Thanks guys Edit: I just noticed AbraCadaver's first post said "don't". This could have been solved in the first reply haha Edited August 26, 2013 by Daktyl198 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.