aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-07-29 23:52:42 +1200
committerDavid Phillips <david@sighup.nz>2018-07-30 00:41:26 +1200
commit9e0523bba756dc47c3ba690768c93e5dbb514e35 (patch)
treeabbc4d335cc0d47ecdaaa78f0f06f98d84065fe4
parentc864470d4cf49249c6b4c0e412d9a060024d656e (diff)
downloadidalius-9e0523bba756dc47c3ba690768c93e5dbb514e35.tar.xz
Add new temporary hack for SASL EXTERNAL
-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},