INSTALLING
Im getting a "unable to connect to tcp://0.0.0.0:113" warning when starting phpBNC
This is because your useraccount that you are starting the bnc with doesnt have access to port 113. The whole errorline would be something like this:
Warning: stream_socket_server(): unable to connect to tcp://0.0.0.0:113 (Permission denied) in /usr/home/blodan/phpbnc/main.php on line 0
SSL doesnt work when i connect to the BNC, whats wrong?
1. Are you 100% sure you have the openssl module installed in PHP? To make sure of this make a file named nfo.php, in this file you type:
<?php
phpinfo();
?>
Then type "php nfo.php" and search for something like this:
openssl
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.7e-p1 25 Oct 2004
If you dont you should probably consider taking a look at your PHP installation.
BUT, if you do find this line everything is OK there.
2. Have you installed openssl on your clientmachine? If your using windows you can simply do it by downloading the installer from http://www.slproweb.com/products/Win32OpenSSL.html
3. Do you have the SSL port opened on your server?
4. If your using mIRC did you write + infront of your port in the connection line? (example: /server <yourserver>:+<yoursslport>)
LOGGING IN
I canīt login with IRSSI, whats the problem?
Yeah, thats one *ops* by me, I forgot to write this in the readme, you have to actually write this in irssi
/quote login <username> <password>
Is there a "auto-login" somehow?
Yes there is, you can either login with commandline by typing this in mIRC:
/server <yourip>:<yourport> <your username>:<your password>
or this in IRSSI:
/server <yourip> <yourport> <your username>:<your password>
You can also login in in mIRC by adding it to the server list, then make sure you enter <username>:<password> in the password box when you add the server.
RUNNING
Is it OK to have debugoutput set to 1 when running live?
No it isnīt, debugoutput activates the "or die(mysql_error());" on each mysql_query the bnc makes, this means that if you loose the mysql connection the bnc will halt/die, if you have debugoutput set to 0 the bnc will survive that and reconnect to the mysql server as soon as it responds again.
Why is almost every menu sent in a query?
Because fucktards never learn, im not saying that everyone out there is stupid but plenty is. Everyday I see people trying to paste/enter a command in the chatwindow sending it to all the users in the channel, this way you actually have to go to the query window to be able to read the commands. *Voila*, no miss-pastes in the channels anymore.
And there is also the fact that query looks alot nicer than notice, atleast in default mIRC.
Why am I not getting a network name set when I connect to a network?
Well, thatīs pretty simple, I have developed this bnc on QuakeNet meaning it pretty much follows what QuakeNets ircd is sending, in this case when you connect to a server on QuakeNet their ircd sends a NETWORK=<networkname> with the variables that sais what length your nick is allowed to be and so on. Some other ircds, as the one your trying to connect to doesnīt send this variable and therefor phpBNC canīt recognize it. If your using one of these networks, please feel free to send the ip to it in the bug section on the forums and iīll take a look on how to recognize that network for future versions of phpBNC.
I also know that undernet, gamesurge, ircnet, efnet, dalnet and rizon is sending this variable, havent tried other networks due to the fact those networks covers the mayority in userbase.
Why am I getting alot of PHPBNC_SAVE text when using channelsave?
This is because you havent added the script into your client thats needed to get a normal output.
Now your probably thinking, "Then why the hell have you done it like this?"
Its pretty simple, when you receive a message your irc client sets the timestamp so that would mean that every message that gets played to you when you login would get the current timestamp and you have no clue on when the user in question wrote something to you, to solve this i added the timestamp to the string which the script below sorts out and makes it look as normal text.
Its basic mirc scripting so you can change the output to match your current theme.
on ^*:TEXT:PHPBNC_SAVE_*:#:{
echo $chan $asctime($mid($1-,13,10),HH:nn:ss>) < $+ $nick $+ > $mid($1-,24,$len($1-)-24) | halt
}
For all IRSSI users, you can load
this script made by
infe.