Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATH] Add ability to register new users with the jabber server #5

Open
mtodd opened this issue Apr 22, 2009 · 0 comments
Open

[PATH] Add ability to register new users with the jabber server #5

mtodd opened this issue Apr 22, 2009 · 0 comments

Comments

@mtodd
Copy link

mtodd commented Apr 22, 2009

Originally submitted by saimonmoore with a path included; please refer to http://code.google.com/p/xmpp4r-simple/issues/detail?id=6#makechanges

Simple usage:

im = Jabber::Simple.register(jid, passwd)

  • will try and register user on the server
  • if successfull, will reconnect and send default status presence
  • if not successfull, throws a RegistrationError with a detailed message

self.register method signature:

self.register(jid, password, status = nil, status_message = "Available") #So you can still provide
custom status after registration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant