From: Brian S. Stephan Date: Fri, 23 Jan 2009 01:11:59 +0000 (-0600) Subject: include errors in the @lines array, make a format for errors X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/01e6bdc8186acbd3c5f570e2252a8f9fc1009b8a?ds=sidebyside include errors in the @lines array, make a format for errors --- diff --git a/twirssi.pl b/twirssi.pl index edb207e..a1b4bcf 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -745,7 +745,7 @@ sub monitor_child { } elsif ( $meta{type} eq 'dm' ) { push @lines, [(MSGLEVEL_MSGS | $hilight), $meta{type}, $account, $meta{nick}, $_]; } elsif ( $meta{type} eq 'error' ) { - $window->print("ERROR: $_", MSGLEVEL_PUBLIC); + push @lines, [MSGLEVEL_MSGS, $_]; } elsif ( $meta{type} eq 'debug' ) { print "$_" if &debug,; } else { @@ -916,6 +916,7 @@ Irssi::theme_register([ 'twirssi_tweet', '[$0%B@$1%n$2] $3', 'twirssi_reply', '[$0\--> %B@$1%n$2] $3', 'twirssi_dm', '[$0%B@$1%n (%WDM%n)] $2', + 'twirssi_error', 'ERROR: $0', ]); Irssi::settings_add_str( "twirssi", "twitter_window", "twitter" );