Problem with a script - 21/01/11 07:35 AM
on *:TEXT:i like*:#mychannel:{
if (%flood) { return }
set -u5 %flood On
if ((myreallifename isin $1-) || ($me isin $1-)) msg $chan (message1) $nick $+ .
elseif $read(text.txt) isin $1-) msg $chan (message2) $nick $+ .
else msg $chan $1- also }
This is what i have, and it works as i intended... but not always. For example: someone says "i like stuff" it will skip the first if and elseif statement as normal and do the else statement. If someone says "i like ($me)" it will do the if statement as normal. But if someone says "i like (word thats in file text.txt)" sometimes the elseif statement will activate, but the majority of the time it just goes straight to the else statement. I've been messing with this script for several hours trying to figure out why it's not working 100% of the time like i want, and i can't figure it out. Theres no other scripts running so they aren't conflicting.
if (%flood) { return }
set -u5 %flood On
if ((myreallifename isin $1-) || ($me isin $1-)) msg $chan (message1) $nick $+ .
elseif $read(text.txt) isin $1-) msg $chan (message2) $nick $+ .
else msg $chan $1- also }
This is what i have, and it works as i intended... but not always. For example: someone says "i like stuff" it will skip the first if and elseif statement as normal and do the else statement. If someone says "i like ($me)" it will do the if statement as normal. But if someone says "i like (word thats in file text.txt)" sometimes the elseif statement will activate, but the majority of the time it just goes straight to the else statement. I've been messing with this script for several hours trying to figure out why it's not working 100% of the time like i want, and i can't figure it out. Theres no other scripts running so they aren't conflicting.