X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FIRC%2FIrcHelpers.pl;h=53d3db7f71b19895f7b43d2b44ce607ba15c7a8f;hb=99f86352e2eff21f5eef65c16c41b44e1bfa17b6;hp=2ce1acb91259eefee97eb714fd6b1511ee6b5ae9;hpb=857f3b7001b806dc469cb958d268f920a8017680;p=infobot.git diff --git a/src/IRC/IrcHelpers.pl b/src/IRC/IrcHelpers.pl index 2ce1acb..53d3db7 100644 --- a/src/IRC/IrcHelpers.pl +++ b/src/IRC/IrcHelpers.pl @@ -244,7 +244,7 @@ sub hookMsg { # better to ignore an extra message than to allow one to get # through, although it would be better to go through ignore # checking again. - if (time() - $cache{ignoreCheckTime} > 60) { + if (time() - ($cache{ignoreCheckTime} || 0) > 60) { &ignoreCheck(); }