Skip to content

Commit 57b9bb8

Browse files
committed
Fix ignore users
1 parent ad94ede commit 57b9bb8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/irc.coffee

+6-3
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ class IrcBot extends Adapter
202202
# this is a private message, let the 'pm' listener handle it
203203
return
204204

205-
if from in ignoreUsers
205+
if from in options.ignoreUsers
206+
console.log('Ignoring user: %s', from)
206207
# we'll ignore this message if it's from someone we want to ignore
207208
return
208209

@@ -221,7 +222,8 @@ class IrcBot extends Adapter
221222
bot.addListener 'action', (from, to, message) ->
222223
console.log " * From #{from} to #{to}: #{message}"
223224

224-
if from in ignoreUsers
225+
if from in options.ignoreUsers
226+
console.log('Ignoring user: %s', from)
225227
# we'll ignore this message if it's from someone we want to ignore
226228
return
227229

@@ -242,7 +244,8 @@ class IrcBot extends Adapter
242244
if process.env.HUBOT_IRC_PRIVATE
243245
return
244246

245-
if nick in ignoreUsers
247+
if nick in options.ignoreUsers
248+
console.log('Ignoring user: %s', nick)
246249
# we'll ignore this message if it's from someone we want to ignore
247250
return
248251

0 commit comments

Comments
 (0)