aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-02-24 02:00:40 +0000
committerTom Feist <shabble@metavore.org>2011-02-24 02:00:40 +0000
commitb609b6633ccf1cf25872d3171872001ec23fea73 (patch)
tree095f31314618f23bd38325dfe4f0bc2e9e88ad71 /vim-mode
parentmore work on testing system for irssi. Most of the screenscraping now works, (diff)
downloadirssi-scripts-b609b6633ccf1cf25872d3171872001ec23fea73.tar.gz
irssi-scripts-b609b6633ccf1cf25872d3171872001ec23fea73.zip
defined check to prevent a warning in flush_input_buffer() [thanks DE1]
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index d850d63..7f4832e 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2414,7 +2414,7 @@ sub handle_input_buffer {
}
sub flush_input_buffer {
- Irssi::timeout_remove($input_buf_timer);
+ Irssi::timeout_remove($input_buf_timer) if defined $input_buf_timer;
$input_buf_timer = undef;
# see what we've collected.
print "Input buffer flushed" if DEBUG;