Advertisement
SaNCaK

mIRC notices window

Jul 31st, 2020
2,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.19 KB | None | 0 0
  1. menu menubar,channel {
  2.   Ayar
  3.   .$iif(%noticewindow,$style(1)) Notice Penceresi ( $+ $iif(%noticewindow,On,Off) $+ ) {
  4.     if (%noticewindow) { unset %noticewindow | .disable #noticewindow | echo -a $timestamp 1,15Notice Penceresi 4KAPALI }
  5.     else { set %noticewindow on | .enable #noticewindow | echo -a $timestamp 1,15Notice Penceresi 3AÇIK }
  6.   }
  7. }
  8. #noticewindow on
  9. on ^*:notice:*:?:{
  10.   if (!$window(@notices)) { window -mel20 @notices }
  11.   if (. !isin $nick) && (????serv !iswm $nick) && ($network != $nick) {
  12.     echo -m @Notices $+(5-,$nick,-) $1- | .linesep @notices | notices $nick
  13.     halt
  14.   }
  15. }
  16. alias ln return $line(@notices,$1,1)
  17. alias notices {
  18.   if ($ln(0) = 0) { aline -l @notices $1 | sline -l @notices 1 | halt }
  19.   unset %notices2
  20.   set %notices $ln(0)
  21.   while (%notices) {
  22.     if ($1 != $ln(%notices)) { inc %notices2 }
  23.     if ($1 = $ln(%notices)) { sline -l @notices %notices | halt }    
  24.     dec %notices
  25.   }
  26.   if (%notices2 = $ln(0)) { aline -l @notices $1   }
  27. }
  28. on *:input:@notices:{
  29.   if ($left($1,1) != /) {
  30.     .notice $sline(@notices,1) $1- | echo -a 2* notice sent to $+(",$sline(@notices,1),") ->12 $1- | .linesep @notices
  31.   }
  32. }
  33. #noticewindow end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement