cb.onEnter(func)

Receive a notification when a registered member enters the room. The funcargument should be a function that receives 1 argument itself, user.

Example Usage

cb.onEnter(function(user) {    cb.sendNotice('Welcome ' + user['user'] + '!');});

Example Output

Notice: Welcome 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}