Skip to content

Commit

Permalink
Part: NICK を小文字に変換して判定するようにした
Browse files Browse the repository at this point in the history
refs #36
  • Loading branch information
ochaochaocha3 committed Mar 18, 2015
1 parent b1f20ff commit 4f13a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rgrb/plugin/part/irc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize(*args)
# @param [String] nick 指定されたニックネーム
# @return [void]
def part(m, nick)
if !nick || nick == bot.nick
if !nick || nick.downcase == bot.nick.downcase
log(m.raw, :incoming, :info)
Channel(m.channel).part(@part_message)
log("<PART on #{m.channel}> #{@part_message}", :outgoing, :info)
Expand Down

0 comments on commit 4f13a98

Please sign in to comment.