Jethro commented on a Page, On Join Actions  -  Mar 13, 2010

Instead of using two repeated commands and messages under your text event, you could do this:

on *:text:*:#: {
  if ($1 == .welcome) {
    $iif(%welcome [ $+ [ # ] ] != yes,set %welcome [ $+ [ # ] ] yes,$iif(%welcome [ $+ [ # ] ] == yes,set %welcome [ $+ [ # ] ] no))
    msg # Welcoming users on join is now $iif(%welcome [ $+ [ # ] ] == yes,9 ENABLED,4 DISABLED)
  }
  if ($1 == .joins) {
    $iif(%joinss [ $+ [ # ] ] != yes,set %joinss [ $+ [ # ] ] yes,$iif(%joinss [ $+ [ # ] ] == yes,set %joinss [ $+ [ # ] ] no))
    msg # Displaying join number on join is now $iif(%joinss [ $+ [ # ] ] == yes,9 ENABLED,4 DISABLED)
  }
  if ($1 == .stats) { msg # 4,1Joins:0,1 %joinss [ $+ [ # ] ] 4,1Welcome:0,1 %welcome [ $+ [ # ] ] }
}

And no /halt is necessary.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.