cgiirc - Ticket #131
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search
[Ticket]  [Timeline]  [Wiki
  [Attach]  [Edit]  [History

Ticket 131: Lots of warnings in the error log

nph-irc.cgi and interfaces/mozilla.pm warns in the error log. The former warns quite a lot. I have made the following changes to make it warn less. But it still warns and I don't really understand perl good enough to know what to do about it:

diff -P ~/cgiirc-0.5.7/nph-irc.cgi nph-irc.cgi
333c333
<          my $bg = length $3 ? sprintf("%0.2d",$3) : '';
---
>          my $bg = defined $3 ? sprintf("%0.2d",$3) : '';
924c924,926
<    say_command($_, 'Status') for split(/;/, $config->{perform});
---
>    if (defined($config->{'perform'})) {
>       say_command($_, 'Status') for split(/;/, $config->{perform});
>    }
Hope this is of any help.

/PEZ

[Add remarks]

Remarks:

Properties:

Type: code           Version: 0.5.7 
Status: new          Created: 2006-Mar-14 21:40
Severity:          Last Change: 2006-Mar-14 21:40
Priority:          Subsystem: core 
Assigned To: dgl           Derived From:  
Creator: anonymous  Operating system: Fedora Core 2 

Related Check-ins:

2006-Apr-30 12:51 Check-in [265] : Fixes for tickets: #27 , #60 , #68 , #69 , #70 , #71 , #92 , #131 , #144 (By dgl)

CVSTrac 1.2.1 - CGI:IRC