From: Marcus Crestani Date: Wed, 21 Jan 2009 14:22:23 +0000 (+0800) Subject: Create a twitter_window on startup if it does not exist. X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/fa2eb7bc4a996f076f9d9e5c3c7dcf4ce70e5dcc?ds=sidebyside Create a twitter_window on startup if it does not exist. Signed-off-by: Dan Boger --- 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" );