Class: JabberAdmin::Commands::BanAccount
- Inherits:
-
Object
- Object
- JabberAdmin::Commands::BanAccount
- Defined in:
- lib/jabber_admin/commands/ban_account.rb
Overview
Ban an account by kicking sessions and set random password.
Class Method Summary collapse
-
.call(callable, user:, reason:) ⇒ Object
Pass the correct data to the given callable.
Class Method Details
.call(callable, user:, reason:) ⇒ Object
Pass the correct data to the given callable.
14 15 16 17 |
# File 'lib/jabber_admin/commands/ban_account.rb', line 14 def self.call(callable, user:, reason:) uid, host = user.split('@') callable.call('ban_account', user: uid, host: host, reason: reason) end |