Created
July 11, 2012 04:01
-
-
Save jheth/3087896 to your computer and use it in GitHub Desktop.
Jabber Subscription Request Callback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib/jabber/bot.rb | |
204,208d203 | |
< @jabber.roster.add_subscription_request_callback do |item,pres| | |
< @jabber.roster.accept_subscription(pres.from) | |
< puts 'accepted request from ' + pres.from.to_s | |
< end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment