When sending CAP REQ, we shouldn't have a space after the :

This commit is contained in:
Matthew Barksdale committed 2011-02-02 15:56:40 -05:00
1 parent ac60b22674
commit 71f22095f1
1 file changed
+2 -2
+2 -2
View File
@@ -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"); }