From f0807a8306fa056e18441568705545edb084cf28 Mon Sep 17 00:00:00 2001 From: Matthew Barksdale Date: Sat, 5 Mar 2011 15:54:02 -0500 Subject: [PATCH] And sasl_timeout, else we're going to get an error --- modules/SASLAuth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/SASLAuth.pm b/modules/SASLAuth.pm index 6580926..9740082 100644 --- a/modules/SASLAuth.pm +++ b/modules/SASLAuth.pm @@ -18,7 +18,7 @@ sub _init # Add sasl to supported CAP for servers configured with SASL. my %servers = conf_get('server'); foreach my $svr (keys %servers) { - if (conf_get("server:$svr:sasl_username") and conf_get("server:$svr:sasl_password")) { $Proto::IRC::cap{$svr} .= ' sasl'; } + if (conf_get("server:$svr:sasl_username") and conf_get("server:$svr:sasl_password") and conf_get("server:$svr:sasl_timeout")) { $Proto::IRC::cap{$svr} .= ' sasl'; } } # Hook for when CAP ACK sasl is received. hook_add('on_capack', 'sasl.cap', \&M::SASLAuth::handle_capack) or return;