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)
return;
self.server.db.addChannelBan(chan.name, ip, name,
self.server.db.addChannelBan(self.name, ip, name,
actor.name,
function (err, res) {
self.users.forEach(function(u) {

View file

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