From 71f22095f1e4c9d66263c9297dec2e5fbcc4d343 Mon Sep 17 00:00:00 2001 From: Matthew Barksdale Date: Wed, 2 Feb 2011 15:56:40 -0500 Subject: [PATCH] When sending CAP REQ, we shouldn't have a space after the : --- modules/SASLAuth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/SASLAuth.pm b/modules/SASLAuth.pm index d377c83..5030b6e 100644 --- a/modules/SASLAuth.pm +++ b/modules/SASLAuth.pm @@ -48,8 +48,8 @@ sub handle_cap { given ($line) { when (/ LS /) { - $tosend .= ' multi-prefix' if $line =~ /multi-prefix/i; - $tosend .= ' sasl' if $line =~ /sasl/ and conf_get("server:$srv:sasl_username"); + $tosend .= 'multi-prefix ' if $line =~ /multi-prefix/i; + $tosend .= 'sasl ' if $line =~ /sasl/ and conf_get("server:$srv:sasl_username"); awarn(2, "SASL is unavailable on this server.") if $tosend !~ /sasl/; if ($tosend eq '') { Auto::socksnd($srv, 'CAP END') } else { Auto::socksnd($srv, "CAP REQ :$tosend"); }