From fa2eb7bc4a996f076f9d9e5c3c7dcf4ce70e5dcc Mon Sep 17 00:00:00 2001 From: Marcus Crestani Date: Wed, 21 Jan 2009 22:22:23 +0800 Subject: [PATCH] Create a twitter_window on startup if it does not exist. Signed-off-by: Dan Boger --- twirssi.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/twirssi.pl b/twirssi.pl index 03680f4..61fdb1f 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -933,6 +933,11 @@ Irssi::settings_add_bool( "twirssi", "twirssi_use_reply_aliases", 0 ); Irssi::settings_add_bool( "twirssi", "tweet_window_input", 0 ); $window = Irssi::window_find_name( Irssi::settings_get_str('twitter_window') ); +if (!$window) { + $window = Irssi::Windowitem::window_create (Irssi::settings_get_str('twitter_window'), 1); + $window->set_name (Irssi::settings_get_str('twitter_window')); +} + if ($window) { Irssi::command_bind( "dm", "cmd_direct" ); Irssi::command_bind( "dm_as", "cmd_direct_as" ); -- 2.39.5