From d346f47ff04394c761367e47b727d85b4f46d433 Mon Sep 17 00:00:00 2001 From: Andreas Scherbaum Date: Fri, 25 May 2012 23:44:09 +0200 Subject: [PATCH] - fix some warnings --- docbot.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docbot.pl b/docbot.pl index ac1b3b0..6e6652e 100755 --- a/docbot.pl +++ b/docbot.pl @@ -1661,6 +1661,10 @@ sub is_a_channel { sub extract_channel { my $string = shift; + if (!defined($string)) { + return ''; + } + if (substr($string, 0, 1) eq '#') { return substr($string, 1); } -- 2.39.5