Fix a couple bugs

This commit is contained in:
calzoneman 2013-08-18 13:05:12 -05:00
parent dfcdee7637
commit 7254512e7d
2 changed files with 2 additions and 2 deletions

View File

@ -612,7 +612,7 @@ Channel.prototype.tryIPBan = function(actor, name, range) {
if(!self.registered) if(!self.registered)
return; return;
self.server.db.addChannelBan(chan.name, ip, name, self.server.db.addChannelBan(self.name, ip, name,
actor.name, actor.name,
function (err, res) { function (err, res) {
self.users.forEach(function(u) { self.users.forEach(function(u) {

View File

@ -553,7 +553,7 @@ Database.prototype.addToLibrary = function (channame, media, callback) {
return; return;
} }
var query = "INSERT INTO `chan_" + channame + "_ranks`" + var query = "INSERT INTO `chan_" + channame + "_library` " +
"(id, title, seconds, type) " + "(id, title, seconds, type) " +
"VALUES (?, ?, ?, ?)"; "VALUES (?, ?, ?, ?)";
var params = [ var params = [