File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ connect to
8
8
9
9
## Installation
10
10
11
- Install the following:
11
+ Install requirements on Debian/Ubuntu. Please match similar packages
12
+ on other distributions.
12
13
13
- php-cli php7.0 -xml php-curl
14
+ sudo apt install php-cli php -xml php-curl
14
15
15
16
Make configuration file
16
17
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ require_once (__DIR__ .'/err.php ' );
4
+
3
5
$ network_curlh = curl_init ();
4
6
5
7
// Close cURL handle on shutdown. Not sure if really needed.
@@ -33,6 +35,7 @@ function irc_raw($msg) {
33
35
if ($ network_irc === NULL ) {
34
36
// Connect first
35
37
$ network_irc = fsockopen ($ conf ->irc_host , $ conf ->irc_port );
38
+ if ($ network_irc === FALSE ) err ("Unable to connect to IRC " );
36
39
fwrite ($ network_irc , "PASS {$ conf ->irc_pass }\nUSER \nNICK \n" );
37
40
}
38
41
fwrite ($ network_irc , $ msg );
You can’t perform that action at this time.
0 commit comments