summaryrefslogtreecommitdiffstats
path: root/modules/mysql.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2012-05-09 16:06:14 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2012-05-09 16:06:14 +0000
commit14eb8a77479507875fe77640dd044d1a462e568a (patch)
tree4ac100311b2ddb7ce2d3f047318b5b0327ae9be0 /modules/mysql.pl
parent62aeddf74f00e7b5418779e8fc1e92cf74b76a6b (diff)
I got tired of checking things in individually so here's one big massive checkin
Diffstat (limited to 'modules/mysql.pl')
-rw-r--r--modules/mysql.pl2
1 files changed, 1 insertions, 1 deletions
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 . '` (';