Table of Contents

# $EPIC: outputinfo.txt,v 1.4 2006/08/19 03:36:44 sthalik Exp $

Synopsis:

$outputinfo()

Technical:

Practical:

If the current target is set, then you could use $querywin() or $chanwin() to figure out where an /echo would go. If the current target is not set, then you could use $levelwindow() to figure out where an /echo would go. But in either case, these two pieces of information are all you need to know to figure out where an /echo would send its output.

Returns:

The current output display context, comprised of the current lastlog level and optionally the current target.

Examples:

on msg "hop *" { eval echo $outputinfo() }
       Outputs "MSGS hop" because this is
       a MSGS and it is from hop
on public "% #epic *" { eval echo $outputinfo() }
       Outputs "PUBLIC #epic" beacuse this
       is a PUBLIC and it is to #epic.
on 432 * { eval echo $outputinfo() }
       Outputs "CRAP" because this is a
       miscelaneous message and is not
       related to a channel or other user.

History:

This function first appeared in EPIC4-1.1.12