aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.conf.example2
-rw-r--r--config_file.pm2
-rwxr-xr-xidalius.pl2
3 files changed, 6 insertions, 0 deletions
diff --git a/bot.conf.example b/bot.conf.example
index d874777..29b619d 100644
--- a/bot.conf.example
+++ b/bot.conf.example
@@ -4,6 +4,8 @@ ircname = a bot
server = irc.example.net
port = 6667
usessl = 1
+sslcert = foo.crt
+sslkey = foo.key
channels = #saxtalk,#bot
ignore = trumpetbot,abusiveuser
password = pleffquiffle
diff --git a/config_file.pm b/config_file.pm
index 304338f..bc30cea 100644
--- a/config_file.pm
+++ b/config_file.pm
@@ -15,6 +15,8 @@ sub parse_config
'server',
'port',
'usessl',
+ 'sslcert',
+ 'sslkey',
'password',
'must_id',
'quit_msg',
diff --git a/idalius.pl b/idalius.pl
index 2dc3ee2..a451309 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -31,6 +31,8 @@ my @plugin_list = plugins("dummy", \&register_command, \%config, \&run_command);
# New PoCo-IRC object
my $irc = POE::Component::IRC->spawn(
UseSSL => $config{usessl},
+ SSLCert => $config{sslcert},
+ SSLKey => $config{sslkey},
nick => $config{nick},
ircname => $config{ircname},
port => $config{port},