summaryrefslogtreecommitdiffstats
path: root/modules/mysql.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-07-03 23:26:43 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-07-03 23:26:43 +0000
commit6fe4d3ecbdc3196c7c62b9b7e00d5063bd0dbee9 (patch)
tree2804867a892bf9d6bb3c231b02938896accb5b91 /modules/mysql.pl
parentf52c9bd6e6e018ff0c45f1dea4ded2aeb4ae1427 (diff)
code optimizations, rehash bugfix, lots of cleanup, new hilights, removed some old rules, added and improved some new rules
Diffstat (limited to 'modules/mysql.pl')
-rw-r--r--modules/mysql.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mysql.pl b/modules/mysql.pl
index 2f96410..998c647 100644
--- a/modules/mysql.pl
+++ b/modules/mysql.pl
@@ -26,6 +26,9 @@ sub record
{
my $self = shift;
my ($channel, $nick, $user, $host, $gecos, $level, $id, $reason) = @_;
+ if (! defined($gecos)) {
+ $gecos = "NOT_DEFINED";
+ }
my $dbh = $self->{DBH};
$dbh->do("INSERT INTO $self->{TABLE} (channel, nick, user, host, gecos, level, id, reason) VALUES (" .
$dbh->quote($channel) . ", " . $dbh->quote($nick) . ", " . $dbh->quote($user) .