$ git clone https://ion.nu/git/webchat
commit f7d43d614bfe9391e724b152a03f602cdb3edf83
Author: Alicia <...>
Date:   Fri Jan 8 00:07:39 2016 +0100

    Don't notify about lost connection when the connection was closed due to password protection (and not yet having supplied the correct password)

diff --git a/proto.js b/proto.js
index d118463..dd7dc32 100644
--- a/proto.js
+++ b/proto.js
@@ -156,9 +156,12 @@ function handlecommands(data)
   }
   else if(data.data=='password')
   {
+    var tmpfunc=chatnote;
+    chatnote=function(){}; // Don't mention connectivity, it's irrelevant at this point
     var pass=prompt('This channel is password protected');
     if(pass!==null)
     {
+      chatnote=tmpfunc;
       connect(channelname, pass);
     }
   }