Changeset 4789b17 for perl/modules/IRC/lib/BarnOwl/Message/IRC.pm
- Timestamp:
- Jul 25, 2008, 11:59:40 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- a1a2036
- Parents:
- d264c6d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Message/IRC.pm
rf151757 r4789b17 56 56 sub network {shift->{network}} 57 57 sub channel {shift->{channel}} 58 sub action {shift->{action}} 59 sub reason {shift->{reason}} 58 60 59 61 # display … … 65 67 sub login_type { 66 68 my $self = shift; 67 return " (" . ($self->is_login ? "JOIN" : "PART"). ")";69 return " (" . uc $self->action . ")"; 68 70 } 69 71 70 sub login_extra { shift->channel; } 71 72 sub login_extra { 73 my $self = shift; 74 if ($self->action eq "quit") { 75 return $self->reason; 76 } else { 77 return $self->channel; 78 } 79 } 72 80 73 81 1;
Note: See TracChangeset
for help on using the changeset viewer.