fake message: set replied on reply
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 31 Dec 2010 09:20:55 +0000 (10:20 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 31 Dec 2010 09:20:55 +0000 (10:20 +0100)
commit71fc5469f228c7be8f140dcec6726a48c0ced595
treec14e1e8ede4af3048b146582b4a8f75f03b47893
parent2bf7bc4cbcf61afc2f59ad9a897c4740cdbc39ef
fake message: set replied on reply

Although the reply method for fake messages was actually relying on the
original, we still need to set 'replied' to prevent the fake message
from being wrongly delegated to 'unreplied'.

The most obvious bug this commit fixes is the potentially infinite loop
triggered by defining a command reaction triggered by the command name
itself (e.g. reply to ping with cmd:ping).
data/rbot/plugins/reaction.rb
lib/rbot/core/utils/extends.rb