!	 $eterna: notice,v 1.9 2021/03/21 04:29:45 mrg Exp $
!
! Copyright (c) 1990-2021  Michael Sandrof, Troy Rollo, Matthew Green,
! and other ircII contributors.
!
! All rights reserved.  See the HELP IRCII COPYRIGHT file for more
! information.
!
Usage: ON [#|+|-|^|&|@]NOTICE [-|^]<parameters> [action]
  This is activated whenever you receive a NOTICE from someone.
  The parameters for the action are as follows:
    $0    nickname of person who sent the NOTICE
    $1    target of the NOTICE
    $2-   The message

  Warning: If you attempt to send a MSG from within a MSG
  action, it will be automatically converted to a NOTICE, as
  this will prevent MSG loops from being sent between two or
  more users.  Also, you will not be permitted to send either
  MSGs or NOTICEs from within a NOTICE action.  The irc
  protocol states that NOTICEs may not generate automatic
  replies so this will prevent loops of automatic messages from
  flooding the net.

  Note that in ircII 20020902 and earlier, $1 is not the target of
  the NOTICE, instead $1- is the message.  For example:

    IF (V > 20020902) {
      ON NOTICE "% % % *" ECHO notice from $0 to $1: $2-
    } {
      ON NOTICE "% % *" ECHO notice from $0: $1-
    }
