changeset 13:a03d337b1457

Fix bug regarding checking for first lol
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 24 Nov 2010 16:15:00 -0600
parents 826e099b4b7b
children e9348ac85d5c
files teh-lol.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/teh-lol.pl
+++ b/teh-lol.pl
@@ -57,7 +57,7 @@
 
     #Don't lol more than once in 30 minutes.
     if ( time - $timestamp{$chan} > 1800 or
-         undef $timestamp{$chan}
+         not defined $timestamp{$chan}
         ) {
 
       #Delay the response a little, for maximum annoyance.