mirror of https://github.com/calzoneman/sync.git
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)
|
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) {
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue