diff --git a/NEWS b/NEWS index 45efc79..01dcf82 100644 --- a/NEWS +++ b/NEWS @@ -18,7 +18,7 @@ In this alpha7 release, we have added: Bug fixes: -None +* Fixed a bug where a CAP entry for a network was not recreated on a reconnect. Incompatibilities: diff --git a/lib/Lib/Auto.pm b/lib/Lib/Auto.pm index 534f2c8..27b62d1 100644 --- a/lib/Lib/Auto.pm +++ b/lib/Lib/Auto.pm @@ -214,6 +214,8 @@ sub ircsock { } } + # Create a CAP entry if it doesn't already exist. + if (!$Proto::IRC::cap{$svrname}) { $Proto::IRC::cap{$svrname} = 'multi-prefix' } # Send PASS if we have one. if (defined $cdata->{'pass'}[0]) { Auto::socksnd($svrname, 'PASS :'.$cdata->{'pass'}[0]) or return;