Permalink
Browse files

Better self-abuse detection

  • Loading branch information...
1 parent eccdf19 commit c129dc32863fa876de3626bb816de016d1970bde @harukizaemon harukizaemon committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/abuse.coffee
@@ -5,7 +5,7 @@
nameOf = (subject, robot, msg) ->
switch subject.toLowerCase()
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
else subject.trim()

0 comments on commit c129dc3

Please sign in to comment.