I'd been getting weird errors showing up when running my jabber4r scripts after somebody attempted to add the bot to
their buddy list. I tracked this down to fact I wasn't setting a subscription handler. So I setup
session.enable_autosubscription but sadly this seems broken. Or am I broken?
/usr/local//lib/ruby/site_ruby/1.8/jabber4r/session.rb:352:in `initialize': wrong number of arguments(1 for 0)
(ArgumentError)
from /usr/local//lib/ruby/site_ruby/1.8/jabber4r/session.rb:352:in `new'
from /usr/local//lib/ruby/site_ruby/1.8/jabber4r/session.rb:352:in `set_subscription_handler'
from /usr/local//lib/ruby/site_ruby/1.8/jabber4r/session.rb:357:in `enable_autosubscription'
Trying to create my own AutoSubscriptionHandler causes problems too. Feel free to tell me to "RTFM closer". |