Away script isn't working correctly - 19/02/15 06:19 PM
Recently someone helped me with this script but it doesn't work as it should. Basically if I type in !away it ignores if they have typed in the chat but if they join it calls out their name. Is there anyway to only allow it to call out if they say hello or anything else in the chat instead of calling out their name when they join?
Code:
on *:TEXT:!away:#: { if ($nick isop #) { set %away.mode On msg $chan Away mode activated, new users will be alerted that the streamer is away } } on !*:JOIN:#: { if (!%away.mode) return if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return } set -u10 %floodjoin On set -u30 %floodjoin. $+ $nick msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly } on *:TEXT:!awayoff:#: { if ($nick isop #) { unset %away.mode msg $chan The streamer is back! Enjoy the show. :) } }