def watch_action(message: str, bot: humphrey.IRCClient): tokens = message.split(maxsplit=3) target = tokens[2] if not bot.is_irc_channel(target): return source = tokens[0].lstrip(':') nick, user, host = bot.parse_hostmask(source) text = tokens[3].split(maxsplit=1)[1].rstrip('\x01') SeenHandler.record_sighting(nick, '* {} {}'.format(nick, text), bot)