Ignore:
Timestamp:
Jul 25, 2008, 11:59:40 PM (16 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
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
Message:
IRC: Add /quit display support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/IRC/lib/BarnOwl/Message/IRC.pm

    rf151757 r4789b17  
    5656sub network {shift->{network}}
    5757sub channel {shift->{channel}}
     58sub action {shift->{action}}
     59sub reason {shift->{reason}}
    5860
    5961# display
     
    6567sub login_type {
    6668    my $self = shift;
    67     return " (" . ($self->is_login ? "JOIN" : "PART") . ")";
     69    return " (" . uc $self->action . ")";
    6870}
    6971
    70 sub login_extra { shift->channel; }
    71 
     72sub login_extra {
     73    my $self = shift;
     74    if ($self->action eq "quit") {
     75        return $self->reason;
     76    } else {
     77        return $self->channel;
     78    }
     79}
    7280
    73811;
Note: See TracChangeset for help on using the changeset viewer.