From 01e6bdc8186acbd3c5f570e2252a8f9fc1009b8a Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 22 Jan 2009 19:11:59 -0600 Subject: [PATCH 1/1] include errors in the @lines array, make a format for errors --- twirssi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ); -- 2.39.5