From: timriker Date: Mon, 24 Oct 2005 19:10:57 +0000 (+0000) Subject: multiconnect work, still not working X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2c6eb8868eb5e0a36bedf9d2a491409c69baa8a0;p=infobot.git multiconnect work, still not working git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1241 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 2153c52..dac4238 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -719,9 +719,10 @@ sub on_nick { $nuh{lc $newnick} = $nuh{lc $nick}; delete $nuh{lc $nick}; - if ($nick eq $ident) { + if ($nick eq $conn->nick()) { &status(">>> I materialized into $b_green$newnick$ob from $nick"); - $ident = $newnick; + $ident = $newnick; + $conn->nick($newnick); } else { &status(">>> $b_cyan$nick$ob materializes into $b_green$newnick$ob"); my $mynick=$conn->nick();