summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/message.rb15
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?