What am I doing wrong? I tried to follow the site you gave me as well as the script to add the on and off commands, but now it doesn't seem to work at all.

Code:

on *:TEXT:!welcomemessage *:#:{
  if ($nick !isop #) { return }
  if ($2 == on) { 
    set %welcome. [ $+ [ $chan ] ] 1 
    msg # Welcome messages enabled
  }

  if ($nick == $remove(#,$chr(35))) { return }
  if ($nick == nightbot) { return }
  if ($nick == wizebot) { return }
  if ($nick == moobot) { return }
  if !$readini(activity.ini,n,$chan,$nick) {
    if ( %welcome. [ $+ [ $chan ] ] == 1 ) {
      msg $chan /me Welcome to the stream $nick $+ ! :)
      /writeini activity.ini $chan $nick $ctime
    }

  }  
  else if ($2 == off) { 
    set %welcome. [ $+ [ $chan ] ] 0 
    msg # Welcome messages disabled
  }
}




Last edited by powerade661; 01/08/15 09:46 AM.