Fix a couple bugs
This commit is contained in:
parent
dfcdee7637
commit
7254512e7d
|
@ -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) {
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue