Track the client's nick changes

IRC is case insensitive - that is impossible. Having said that, lowercasing
is probably not needed
On 18 Dec 2014 22:14, "Nick Desaulniers" <notifications@github.com> wrote:

> In js/my.js
> <https://github.com/nickdesaulniers/fxos-irc/pull/84#discussion-diff-22075718>
> :
>
> > @@ -217,6 +219,14 @@ document.addEventListener("DOMContentLoaded", function () {
> >                });
> >            }
> >        });
> > +      client.addListener('nick', function(oldNick, newNick, channels, message) {
> > +          if (oldNick.toLowerCase() === username.toLowerCase()) {
> > +              username = newNick;
> > +          }
>
> Ah. Is it possible then that there might be bugs if there's a user NiCk
> and another nICK?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nickdesaulniers/fxos-irc/pull/84/files#r22075718>.
>