From 14eb8a77479507875fe77640dd044d1a462e568a Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Wed, 9 May 2012 16:06:14 +0000 Subject: I got tired of checking things in individually so here's one big massive checkin --- modules/mysql.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mysql.pl') diff --git a/modules/mysql.pl b/modules/mysql.pl index 23f9dae..ff4e0da 100644 --- a/modules/mysql.pl +++ b/modules/mysql.pl @@ -63,13 +63,13 @@ sub record #FIXME: This function is shit. Also, it doesn't work like I want it to with mode. sub logg { - return; #Disabling logging of individual stuff to mysql. no point. my $self = shift; my ($event) = @_; my $dbh = $self->{DBH_LOG}; my $table = $event->{type}; $table = 'action' if ($table eq 'caction'); $table = 'privmsg' if ($table eq 'public'); + return if (($table eq 'action') or ($table eq 'privmsg')); #Disabling logging of privmsg stuffs to mysql. no point. my $realtable = $table; $realtable = 'joins' if $realtable eq 'join'; #mysql doesn't like a table named join my $string = 'INSERT INTO `' . $realtable . '` ('; -- cgit v1.2.3