Your on quit event will trigger anytime anyone quits irc. You should change it to check it the nick is yours.