Your IP : 216.73.216.48


Current Path : /usr/X11R6/share/epic5/help/6_Functions/
Upload File :
Current File : //usr/X11R6/share/epic5/help/6_Functions/lastserver

# $EPIC: lastserver,v 1.2 2001/06/22 20:01:37 jnelson Exp $
Synopsis:
   $lastserver()

Technical:
   This function shows the name of the last server to send you a message of
   any kind.  It only has an effect inside hooks.

Practical:
   This function shows the name of the server sending the current message.
   Like $userhost(), it s only useful inside hooks.  It might be used to
   indicate when a message is no coming from the current server.

Returns:
   server name

Examples:
   To indicate that a remote server is sending the NAMES reply:
      on ^names "*" {
         if ( lastserver() == S ) {
            echo *** On $0: $1- \(from $lastserver()\)
         } {
            echo *** On $0: $1-
         }
      }

See Also:
   userhost(6)