summaryrefslogtreecommitdiffstats
path: root/modules/mysql.pl
diff options
context:
space:
mode:
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) .