Closed vivien closed 11 years ago
I confirm this bug. (In the @v0n report, don't look at the Hashtag plugin, it's just an example : you can reproduce this bug with a simple "pong!" plugin.)
I temporarly fix this bug on user-side with :
until @bot.plugins.empty? do
@bot.plugins.unregister_all
end
Regards, fridim
For the record: Adding plugins dynamically wasn't the issue. It would've occurred with more than one statically loaded plugin as well. See the commit message for more information.
Thanks for reporting this issue, thanks fridim for confirming it.
With @fridim, we've noticed that #unregister_all doesn't work. Here's how to reproduce it, with the following bot:
You can try:
Then write "foo #bar" in the channel. The bot will parse your message 3 times. Then unregister with:
The previous message will still be parsed, by at least 1 handler.
Ruby 1.9.3 / Cinch 2.0.3