From 45bb7e668cdba8557518dc3e0a79f97a52b8f719 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Wed, 2 Mar 2011 22:05:13 -0700 Subject: [PATCH] Fixed a bug where a CAP entry for a network was not recreated on a reconnect. --- NEWS | 2 +- lib/Lib/Auto.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;