# Assign BORDERCOLOR and TEXTCOLOR to whichever colors you want for border and text # Assign OFFSET to the offset from left side of the window that the whois box will be displayed assign BORDERCOLOR %G assign TEXTCOLOR %W assign OFFSET 2 @SHORTWHOIS = [] @delarray(items) @delarray(hitlist) @delarray(penalty) alias fcstr { @:str = [$*] @function_return = TEXTCOLOR ## left(1 $str) ## [%n] ## mid(1 $@str $str) } alias offset_str (nchar) { @:string = [] for (@:count=0, count] @:spacer = (maxlinelength - @name)/2 - (@title + 4) for (@:count=0, count maxlabellength) @maxlabellength = @line @line = word(1 $getitem(items $count)) if (@line > maxinfolength) @maxinfolength = @line } @:title = word(0 $getitem(items 0)) @:name = word(1 $getitem(items 0)) @:maxlinelength = maxlabellength + maxinfolength + 6 if ((maxlinelength/2)<(@title + @name/2 + 6)) @maxlinelength = (@title + @name/2 + 6)*2 echolistheader $getitem(items 0) $maxlinelength for (@count=1, count