-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server password #28
Comments
Try looking at my code, I have just tried to implement channel and server password handling. I'm hoping at some point pogo will pull my code. |
It doesn't seem to work, it doesn't show the password in the output, and also spams empty log messages filling up the log file making it huge. |
Does it just say "PASS" then? |
Yes, only PASS. |
OK I'll take a look now, and hopefully will find my error. |
OK try what I have just pushed now, on my end I now get the password in the PASS message. =) |
Now it connects to the server but it doesn't join a channel. It shows the server MOTD and then nothing. |
OK is your config file as needed? If you wanted to join a channel called #phpbot404 with no password and #cs with password foobarbaz you would have: 'channels' => array( If you are sure your config. is correct, please may you post a log output, thanks. =) |
28.02.2013 - 20:23:28 [ COMMAND ] PASS removedpassword And then nothing after that. The config is: 'channels' => array( |
Hmm it seems like that should work... I just tested my code on a private room and it connected fine... I don't have a server that needs a password to try my code out on, but I really don't see why it would not work. My code also doesn't complain if you try to join an passwordless channel with a password and it says it can't connect to a channel if the password is wrong... It seems very strange to me. |
Are you still receiving this weird bug? |
Yes I am, if you want to you can create an account on twitch.tv and the irc password is the same as on the website. |
Hmmm, when I try to connect to that server, I get the infinite loop problem (when I clone the code here) and I can't work that one out, but if you aren't then I know why your bot isn't connecting to any channels. Super3 put in some code which checks for "Welcome" in the MOTD and if it's not there then the bot doesn't try and connect to any channels and from your log above the MOTD doesn't have "Welcome" in it! if (stripos( $data, 'Welcome' ) !== false) { That is a very silly check, but at this moment I think the best way is to look for "End of /MOTD command" instead. Try the latest push and fingers crossed it works. I really do need to get to the bottom of that infinite loop though, if you were getting it and I still am. |
Now it connects and accepts commands, thanks! |
Great! \o/ |
Connecting to irc.twitch.tv I get this error can you help me out? socket_create(): Unable to create socket [0]: An address incompatible with the requested protocol was used. in E:\xampp\htdocs\github\IRC-Bot\Classes\Library\IRC\Bot.php on line 195 log: 21.10.2014 - 19:36:50 [ COMMAND ] PASS password |
The IRC server I'm trying to connect to requires a server password, would be nice it that could be added. Everything else seems to work just fine but the password is missing.
The text was updated successfully, but these errors were encountered: