Class: JabberAdmin::Commands::MucRegisterNick
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::MucRegisterNick
- Defined in:
- lib/jabber_admin/commands/muc_register_nick.rb
Overview
Register a nick to a user JID in the MUC service of a server.
Note: On ejabberd <= 18.01 this command always returns a error code, even when the command was successful under the hood. (See: bit.ly/2L1CpvE)
Class Method Summary collapse
-
.call(callable, user:, nick:) ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, user:, nick:) ⇒ Object
Pass the correct data to the given callable.
18 19 20 21 22 23 |
# File 'lib/jabber_admin/commands/muc_register_nick.rb', line 18 def self.call(callable, user:, nick:) callable.call('muc_register_nick', nick: nick, jid: user, serverhost: user.split('@').last) end |