fake_message duplicates m.reply and m.in_thread from the :from message
authorYaohan Chen <yaohan.chen@gmail.com>
Tue, 24 Jun 2008 03:29:51 +0000 (23:29 -0400)
committerYaohan Chen <yaohan.chen@gmail.com>
Tue, 24 Jun 2008 15:31:22 +0000 (11:31 -0400)
commit9ad6b29acc7c96c394f470f261cea7331004110b
treea9d6f2b078b99db833c3af8e1ccf5b5df9fd55f7
parent5c832c68f93277a8a0bcfa8f30493924b938a360
fake_message duplicates m.reply and m.in_thread from the :from message
this makes it possible to create a fake message, override its reply method in order
to get its "return value", even if the fake message will be handled by creating
another fake message.
lib/rbot/core/utils/extends.rb