lib/marvin/irc/event.rb in marvin-0.8.1 vs lib/marvin/irc/event.rb in marvin-0.8.2
- old
+ new
@@ -22,10 +22,10 @@
def inspect
"#<Marvin::IRC::Event name=#{@name} attributes=#{to_hash.inspect} >"
end
def to_event_name(prefix = nil)
- [prefix, @name].join("_").to_sym
+ [prefix, @name].compact.join("_").to_sym
end
def to_incoming_event_name
to_event_name :incoming
end
\ No newline at end of file