mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
fix unban
This commit is contained in:
parent
ed24043a55
commit
485e08ff97
@ -154,7 +154,7 @@ var ignore = function(dbot) {
|
|||||||
var nick = event.input[1],
|
var nick = event.input[1],
|
||||||
item = event.input[2];
|
item = event.input[2];
|
||||||
|
|
||||||
dbot.api.users.resolveUser(event.server, nick, function(user) {
|
dbot.api.users.resolveUser(event.server, nick, function(err, user) {
|
||||||
this.api.getUserIgnores(user, function(err, ignores) {
|
this.api.getUserIgnores(user, function(err, ignores) {
|
||||||
if(err || !ignores) {
|
if(err || !ignores) {
|
||||||
event.reply(dbot.t('invalid_unban', {
|
event.reply(dbot.t('invalid_unban', {
|
||||||
|
Loading…
Reference in New Issue
Block a user