Code:
 on $*:text:/(Hi|Hello|Hiya|Hiya guys|Hi guys|Hello all|Hi all|Hello guys)$/i:#: {
  if ((%flood) || ($($+(%,flood.,$nick),2))) { return } && ($nick == nick)

  set -u10 %flood On
  set -u900 %flood. $+ $nick On


  { msg $chan Hi $nick }

}

elseif ($nick != nick)

 set -u10 %flood On
  set -u900 %flood. $+ $nick On


  { msg $chan Different message for this specific person here }

}

Hello, I have this script. It is a script built to greet people who enter a channel, with flood prevention measures so that it only works every 10 seconds and every 15 minutes per nick. However, I am trying to implement a feature so that it responds differently to one nick. I have attempted to do so above using if and elseif statements, but for some reason it is not working as I anticipated it to. Could somebody please help me determine why?

Thanks! : )

Last edited by Noah1267; 26/04/15 03:41 AM.