Closed zackp30 closed 10 years ago
Apparently diagnosed and solved in the IRC channel, closing.
what was the solution to this?
@benklop From the IRC logs:
2014-03-08 16:36:05 nickrw it's because you're trying to unload the class, not the instantiated plugin object 2014-03-08 16:36:33 Zackio Oh... 2014-03-08 16:36:47 nickrw I do this in my unloader: 2014-03-08 16:37:54 nickrw i = bot.plugins.find_index { |x| x.class == klass } 2014-03-08 16:37:54 nickrw bot.plugins.unregister_plugin(bot.plugins[i]) 2014-03-08 16:38:20 nickrw where 'klass' is plugin.captialize in your code 2014-03-08 17:15:29 Zackio It worked! Thanks! :D
[2014/03/08 00:48:24.258] !! /home/morpheus/.rvm/gems/ruby-2.1.0/gems/cinch-2.1.0/lib/cinch/plugin_list.rb:21:in
unregister_plugin': undefined methodunregister' for Test:Class (NoMethodError)