[2765] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

Re: [PATCH] Display subject as XMPP personal context (if set)

daemon@ATHENA.MIT.EDU (Alex Dehnert)
Thu Nov 11 22:41:09 2010

Date: Thu, 11 Nov 2010 22:41:06 -0500
From: Alex Dehnert <adehnert@MIT.EDU>
To: Nelson Elhage <nelhage@mit.edu>
CC: barnowl-dev@mit.edu
In-Reply-To: <20100504150125.GB19227@mit.edu>

... which I apparently never remembered to do. I'll go ahead and do so, 
uh, soon, if nobody objects.

On 05/04/2010 11:01 AM, Nelson Elhage wrote:
> Ok, discussion on Zephyr cleared this up slightly. Feel free to go
> ahead and push.
>
> Reviewed-by: Nelson Elhage<nelhage@mit.edu>
>
> On Mon, May 03, 2010 at 02:38:34PM -0400, Alex Dehnert wrote:
>> ---
>>   perl/modules/Jabber/lib/BarnOwl/Message/Jabber.pm |    4 +++-
>>   1 files changed, 3 insertions(+), 1 deletions(-)
>>
>> diff --git a/perl/modules/Jabber/lib/BarnOwl/Message/Jabber.pm b/perl/modules/Jabber/lib/BarnOwl/Message/Jabber.pm
>> index 2fe0f3b..ac8015a 100644
>> --- a/perl/modules/Jabber/lib/BarnOwl/Message/Jabber.pm
>> +++ b/perl/modules/Jabber/lib/BarnOwl/Message/Jabber.pm
>> @@ -53,7 +53,9 @@ sub subcontext {
>>
>>   sub personal_context {
>>       my $self = shift;
>> -    if ($self->is_incoming) {
>> +    if($self->subject) {
>> +        return "subject: " . $self->subject;
>> +    } elsif ($self->is_incoming) {
>>           return "to " . $self->to;
>>       } else {
>>           return "from " . $self->from;
>> --
>> 1.6.3.3
>>

home help back first fref pref prev next nref lref last post