and the 3 times is probably due to the on JOIN event, which is triggering for every channel the users joins, so you should limit it to one channel or use a variable to check if that nick was last checked with the script or not.