That does exactly the same thing mine did, it echoes "-psyBNC text." to the active window if there isn't a window called -psyBNC open, and echoes "text." to the -psyBNC window if it is open.