Skip to content

v2.4.0

Compare
Choose a tag to compare
@ochaochaocha3 ochaochaocha3 released this 17 May 17:08
· 5 commits to master since this release
v2.4.0
2dc0265

Added

  • Cinch::Bot#last_conection_error [StandardError, nil]: the exception that occurred in the last connection.

Changed

  • Cinch::Bot#start returns whether the last connection was successful.
    This is useful for host applications to show messages after connection errors.
    • Returns true if the last connection was successful (e.g. after calling Cinch::Bot#quit).
    • Returns false after giving up the connection to an IRC server due to errors.
  • Cinch::Bot#quit quits the bot more gently using the thread for quitting bot.
    You can now call Cinch::Bot#quit in signal handlers without a ThreadError.
    This is based on cinchrb/cinch#195.
  • Cinch::Utilities::Encoding.encode_incoming always encodes incoming messages to UTF-8.
    Cinch bots can now connect to IRC servers that use a non-UTF-8 encoding (e.g. ISO-2022-JP) without encoding-related exceptions.
  • Method calls passing a Hash as the last argument are modified to pass keyword arguments to suppress warnings in Ruby 2.7.
    • Cinch::Logger#log (calls String#encode)
    • Cinch::Utilities::Encoding.encode_incoming (calls String#encode!)
    • Cinch::Utilities::Encoding.encode_outgoing (calls String#encode!)