Ignore:
Timestamp:
Sep 30, 2009, 9:32:36 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2184001
Parents:
5b483a6
git-author:
Nelson Elhage <nelhage@mit.edu> (09/30/09 21:21:14)
git-committer:
Nelson Elhage <nelhage@mit.edu> (09/30/09 21:32:36)
Message:
Squelch some 'uninitialized' warnings in IRC completion.

IRC join, part, and quit messages have type IRC, but don't necessarily
have a sender or recipient, so check for those before storing them in
the completion list.
File:
1 edited

Legend:

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

    r27a1903 r955a36e  
    7474    my $m = shift;
    7575    return unless $m->type eq 'IRC';
    76     if ($m->recipient !~ m{^#}) {
     76    if ($m->recipient && $m->recipient !~ m{^#}) {
    7777        $users{$m->recipient} = 1;
    7878    }
    79     if ($m->sender !~ m{^#}) {
     79    if ($m->sender && $m->sender !~ m{^#}) {
    8080        $users{$m->sender} = 1;
    8181    }
Note: See TracChangeset for help on using the changeset viewer.