Advertisement
westor

ISupport parser for Koragg v1.3

Dec 8th, 2020 (edited)
1,709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.44 KB | None | 0 0
  1. ; --- Settings ---
  2.  
  3. alias -l ui_font { return Fixedsys }
  4. alias -l ui_font_size { return 12 }
  5. alias -l ui_checkbox_sign { return $chr(10004) }
  6. alias -l ui_column_sign { return $chr(166) }
  7. alias -l ui_line_separator { return $chr(160) } ; Use 0 to disable it
  8. alias -l ui_name_color { return 05 }
  9. alias -l ui_value_color { return 03 }
  10.  
  11. ; --- Settings ---
  12.  
  13. RAW 351:*: {
  14.   var %win = @ISUPPORT_ $+ $server
  15.  
  16.   if ($window(%win))  { haltdef }
  17. }
  18.  
  19. RAW 005:*: {
  20.   var %win = @ISUPPORT_ $+ $server
  21.  
  22.   if (!$window(%win)) { return }
  23.  
  24.   haltdef
  25.  
  26.   var %t = $numtok($2-,32)
  27.   var %i = 1
  28.  
  29.   while (%i <= %t) {
  30.     var %w = $gettok($2-,%i,32)
  31.     var %n = $gettok(%w,1,61)
  32.     var %v = $gettok(%w,2-,61)
  33.     var %p = $calc(20 - $len(%n))
  34.  
  35.     if (*=* !iswm %w) && (%w !isupper) { goto next }
  36.     if (!%w) || (!%n) { goto next }
  37.  
  38.     if (%n) && (!%v) { aline %win $+($chr(3),$ui_name_color,%n,$chr(3)) $str($chr(160),%p) $ui_column_sign $+($chr(3),$ui_value_color,$ui_checkbox_sign,$chr(3)) }
  39.     if (%n) && (%v) { aline %win $+($chr(3),$ui_name_color,%n,$chr(3)) $str($chr(160),%p) $ui_column_sign $+($chr(3),$ui_value_color,%v,$chr(3)) }
  40.  
  41.     if ($ui_line_separator) { aline %win $ui_line_separator }
  42.  
  43.     :next
  44.     inc %i
  45.   }
  46.  
  47. }
  48.  
  49. alias ui_isupport {
  50.   if ($status !== connected) { return }
  51.  
  52.   var %win = @ISUPPORT_ $+ $server
  53.  
  54.   if ($window(%win)) { window -c $v1 }
  55.  
  56.   window %win $ui_font $ui_font_size
  57.  
  58.   .quote version
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement