Releases: cre-ne-jp/mcinch
Releases · cre-ne-jp/mcinch
v2.4.1
v2.4.0
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.
- Returns
- 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!)