Skip to content

Commit

Permalink
Better self-abuse detection
Browse files Browse the repository at this point in the history
  • Loading branch information
harukizaemon committed Dec 1, 2011
1 parent eccdf19 commit c129dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/abuse.coffee
Expand Up @@ -5,7 +5,7 @@
nameOf = (subject, robot, msg) -> nameOf = (subject, robot, msg) ->
switch subject.toLowerCase() switch subject.toLowerCase()
when "me", "i" then msg.message.user.name when "me", "i" then msg.message.user.name
when "yourself" then robot.name when "yourself", robot.name.toLowerCase() then robot.name
when msg.message.user.name.toLowerCase() then msg.message.user.name when msg.message.user.name.toLowerCase() then msg.message.user.name
else subject.trim() else subject.trim()


Expand Down

0 comments on commit c129dc3

Please sign in to comment.