Method: Jabber::MUC::SimpleMUCClient#on_join
- Defined in:
- lib/xmpp4r/muc/helper/simplemucclient.rb
#on_join(&block) ⇒ Object
Block to be called when somebody enters the room
If there is a non-nil time passed to the block, chances are great that this is initial presence from a participant after you have joined the room.
- block
-
Takes two arguments: time, nickname
229 230 231 |
# File 'lib/xmpp4r/muc/helper/simplemucclient.rb', line 229 def on_join(&block) @join_block = block end |