230721 | antoszka | ar: mógłby też zwracać typ danych, jak ood

master
Robert Gerus 2015-03-24 23:08:45 +01:00
parent f82ba8af07
commit 5e0c8eeeac
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ Client.register_trigger("PRIVMSG") { |msg|
eval(code)
}.call
Client.privmsg(destination, String.try_convert(retval.to_s))
Client.privmsg(destination, String.try_convert(retval.to_s) + " => " + String.try_convert(retval.class))
rescue Exception => e
Client.privmsg(destination, e.inspect)
puts e.inspect