also, if in mirc no channel is selected but a server window, how would i know that?

EDIT: nm, I fixed that

Code:
if ( %t != $null ) {
    drawtext -on @user 1 tahoma -11 $int($calc((48 - $width(%t, tahoma, -11, 1)) / 2)) 7 %t
  }

Last edited by LethPhaos; 03/12/06 05:07 PM.