Created
August 3, 2014 10:19
-
-
Save ro31337/e6e9fbe29a4d2463a4f0 to your computer and use it in GitHub Desktop.
xmpp4r-simple.rb on Ruby 1.9+
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
... | |
presence = case new_presence.type | |
when nil | |
new_presence.show || :online | |
when :unavailable | |
:unavailable | |
else | |
nil | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment