diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-30 18:31:24 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-08-30 18:31:24 +0000 |
commit | a1bd10b2fd194646b8fdd1151d490f61d59792d5 (patch) | |
tree | 5cd4a7bc046d0dfcac15eb10675e821f2a57ef35 | |
parent | 96f214843f3e667b0a34955b0632ca834bb9ecfe (diff) |
!!! (message.rb) dear tango_! i have no idea what r1073 is! -jsn.
-rw-r--r-- | lib/rbot/message.rb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index c671e00a..42042b88 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -150,24 +150,13 @@ module Irc # Access the nick of the source # def sourcenick - if @source.reply_to?(:nick) - @source.nick - else - @source.to_s - end + @source.nick end # Access the user@host of the source # def sourceaddress - str = String.new - if @source.reply_to?(:user) - str << @source.user.to_s - end - if @source.reply_to?(:host) - str << @source.host.to_s - end - str + "#{@source.user}@#{@source.host}" end # Was the message from an identified user? |