def on_join(word, word_eol, userdata): pass xchat.hook_print('Join', on_join)