Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Style.

  • Loading branch information...
commit e632cf2ef5fbbe15d96cedcb86ad9d665d950878 1 parent df14d3e
@gabebw authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/pidgin2adium/parsers/basic_parser.rb
View
6 lib/pidgin2adium/parsers/basic_parser.rb
@@ -100,9 +100,7 @@ def create_status_or_event_message(matches)
time = create_adium_time(matches[0])
str = matches[1]
- if time.nil? || ignorable_event?(str)
- nil
- else
+ if time && ! ignorable_event?(str)
create_status_message(str, time) || create_event_message(str, time)
end
end
@@ -114,7 +112,7 @@ def time_parser
protected
def ignorable_event?(str)
- ignore_events.detect{|regex| str =~ regex }
+ ignore_events.detect { |regex| str =~ regex }
end
def create_status_message(str, time)
Please sign in to comment.
Something went wrong with that request. Please try again.