mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Beta 7.47.638

RAW 315 (End of /WHO) events are suppressed if they belong to a /ialfill command.
This makes it impossible to manage the automatic sending of /ialfill commands, only after the previous /ialfill command has completed.

In contrast, RAW 354:& 995 ?*: events that belong to /ialfill are not suppressed. (This is a Good Thing.)


Code:
; r_ialfill_auto by Raccoon 2017-Feb-27

ALIAS ialfill_auto {
  echo 4 -s * DEBUG: /ialfill_auto: $1-
  ; wait 10 seconds after mostrecent names/who to fill next channel.
  if ($1 == wait) {
    timerIALFILL. $+ $cid 1 10 ialfill_auto
    return
  }
  ; cycle through joined channels to find one that needs filling.
  var %i = 1, %chan
  while ($chan(%i)) {
    var %chan = $v1
    inc %i
    if ($chan(%chan).inwho == $true) { return }
    if ($chan(%chan).status != joined) { continue }
    if ($chan(%chan).ial == $true) { continue }
    ; fill this channel and done; until next 'End of /NAMES or /WHO.'
    ialfill %chan
    return
} } ; by Raccoon 2017

; End of /NAMES list.  (joined a channel)
RAW 366:*: ialfill_auto wait | ;echo 4 -s * DEBUG: RAW $numeric $+ : $1-
; (366 working.)

; End of /WHO list.  (ialfilled a channel)
RAW 315:*: ialfill_auto wait | echo 4 -s * DEBUG: RAW $numeric $+ : $1-
;xxx (315 NOT WORKING!) xxx

; mIRC's IALFILL WHOX record
; /ialmark the server each user is on. use $ialmark(%nick,server).value
RAW 354:& 995 ?*: .ialmark -n $$7 server $$6 | ;echo 4 -s * DEBUG: RAW $numeric $+ : $1-
; (354 working.)

; End of script.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks this issue has been fixed for the next beta.


Link Copied to Clipboard