Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just return if sender is nil.

  • Loading branch information...
commit c2f814cad225b4bdf7fae9fcb0d8fd78d5059783 1 parent c3d2d3c
@radar radar authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  leaves/logga/controller.rb
View
2  leaves/logga/controller.rb
@@ -334,6 +334,7 @@ def did_receive_channel_message(stem, sender, channel, message)
end
def someone_did_join_channel(stem, sender, channel)
+ return if sender.nil?
person = find_or_create_person(sender[:nick])
find_or_create_hostname(sender[:host], person)
person.chats.create(:channel => channel, :message_type => "join") unless sender[:nick] == "logga"
@@ -346,6 +347,7 @@ def someone_did_leave_channel(stem, sender, channel)
end
def someone_did_quit(stem, sender, message)
+ return if sender.nil?
person = find_or_create_person(sender[:nick])
find_or_create_hostname(sender[:host], person)
person.chats.create(:channel => nil, :message => message, :message_type => "quit")
Please sign in to comment.
Something went wrong with that request. Please try again.