cb.onLeave(func)¶
Receive a notification when a registered member leaves the room. The func
argument should be a function that receives 1 argument itself, user.
Example Usage¶
cb.onLeave(function(user) {
cb.sendNotice('Bye ' + user['user'] + '!');
});
Example Output¶
Notice: Bye testuser!
Notice: {u'user': u'testuser', u'in_fanclub': False,
u'has_tokens': False, u'is_mod': False,
u'gender': u'm', u'tipped_recently': True}