/*
 * External function to use for pagewatch that sends messages about
 * getty login attempts.
 */

parse arg datetime . ',' . ',' what

if left(what, 1) = ' ' then
	who = ''
else
	parse var what who what

who = strip(who)
what = strip(what)

if left(what, 11) = 'Write Error' then return ''

if left(what, 15) = 'SetParams Error' then return ''

if upper(strip(who)) = 'PAGE' then return ''

return 'getty:' datetime what
