mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
missing err in readUser on reload ignore repopulation
This commit is contained in:
parent
5551e8545f
commit
402c8e80f4
@ -273,7 +273,7 @@ var ignore = function(dbot) {
|
|||||||
dbot.instance.clearIgnores();
|
dbot.instance.clearIgnores();
|
||||||
|
|
||||||
this.db.scan('ignores', function(ignores) {
|
this.db.scan('ignores', function(ignores) {
|
||||||
dbot.api.users.getUser(ignores.id, function(user) {
|
dbot.api.users.getUser(ignores.id, function(err, user) {
|
||||||
if(user) {
|
if(user) {
|
||||||
_.each(ignores.ignores, function(module) {
|
_.each(ignores.ignores, function(module) {
|
||||||
dbot.instance.ignoreTag(user.currentNick, module);
|
dbot.instance.ignoreTag(user.currentNick, module);
|
||||||
|
Loading…
Reference in New Issue
Block a user