ruby-irc-yail
ruby-irc-yail copied to clipboard
Fix optional event elements' errors
NoMethodError doesn't really make sense for optional elements, such as what was happening with event.from on prefix-free NOTICE messages. It's probably worth auditing the code to see where it makes sense to have a nil default rather than having exceptions get thrown. In 1.5.x this may be a much bigger problem as the events will be more directly exposed to the users.