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=f1c576b87b862ce476e901cd1b6cfe453ddb3f92;p=infobot.git multiconnect work, still not working git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1241 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/IRC/IrcHooks.pl b/blootbot/src/IRC/IrcHooks.pl index 2153c52..dac4238 100644 --- a/blootbot/src/IRC/IrcHooks.pl +++ b/blootbot/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();