OSDN Git Service

Complete buffer cleanup.
authormatusita <matusita@180c8125-5b33-4295-ad04-72a68a15b4cc>
Thu, 8 May 2008 14:53:38 +0000 (14:53 +0000)
committermatusita <matusita@180c8125-5b33-4295-ad04-72a68a15b4cc>
Thu, 8 May 2008 14:53:38 +0000 (14:53 +0000)
lib/Keitairc/IrcBuffer.pm

index 0448bd0..8504fe5 100644 (file)
@@ -1,6 +1,6 @@
 # -*-perl-*-
 # Keitairc::IrcBuffer
-# $Id: IrcBuffer.pm,v 1.11 2008-02-25 17:02:31 morimoto Exp $
+# $Id: IrcBuffer.pm,v 1.12 2008-05-08 14:53:38 matusita Exp $
 # $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/IrcBuffer.pm,v $
 #
 # Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
@@ -141,6 +141,11 @@ sub cid2name{
 sub part{
        my($me, $cid) = @_;
        delete $me->{cid2name}->{$cid};
+       delete $me->{name2cid}->{$cid};
+       delete $me->{topic}->{$cid};
+       delete $me->{nicks}->{$cid};
+       delete $me->{buffer}->{$cid};
+       delete $me->{unread}->{$cid};
 }
 
 ################################################################