Code:
on $*:text:/^(\S+)/:#:{

 if ((%floodrandomk) || ($($+(%,floodrandomk.,$nick),2))) {
  return
 }

 set -u4 %floodrandomk On
 set -u5 %floodrandomk $+ $nick On
 set %randnick $nick($chan,$rand(1,$nick($chan,0))) {
  msg $chan %randnick $read(a1.txt,n) 
 }
 { 
  if ($nick = %randnick) {
   msg $chan %randnick $read(a2.txt,n) 
  }
}



Looks like you forgot to start the second if statement with a '{'

Next time use the CODE tags to show proper spacing of code, otherwise it looks messy. Not sure if this fixes your problem.

Last edited by TillableToast; 31/08/16 07:32 PM.