Changeset 452


Ignore:
Timestamp:
07/09/12 15:40:50 (12 years ago)
Author:
nanardon
Message:
  • show error in Term mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bot/trunk/lib/Sophie/Bot/Term.pm

    r302 r452  
    1818sub show_reply { 
    1919    my ($self, $heap, $reply) = @_; 
    20     print "$_\n" foreach (@{$reply->{message}}); 
     20    if ($reply->{error}) { 
     21        print $reply->{error} . "\n"; 
     22    } else { 
     23        print "$_\n" foreach (@{$reply->{message}}); 
     24    } 
    2125} 
    2226 
Note: See TracChangeset for help on using the changeset viewer.