mIRC Home    About    Download    Register    News    Help

Print Thread
$nick().pnick returns $null for modes on quit #259893 08/02/17 11:26 PM
Joined: Aug 2015
Posts: 35
_
_entropy Offline OP
Ameglian cow
OP Offline
Ameglian cow
_
Joined: Aug 2015
Posts: 35
Can you please let '.pnick' return the modes of nick before quit?

Last edited by _entropy; 08/02/17 11:28 PM.

mIRC Scripts Website: https://mircscripts.net - Register today!
Re: $nick().pnick returns $null for modes on quit [Re: _entropy] #259895 09/02/17 12:53 AM
Joined: Feb 2003
Posts: 2,659
Raccoon Online
Hoopy frood
Online
Hoopy frood
Joined: Feb 2003
Posts: 2,659
It already does. I tested this with both regular On *:QUIT: {, as well as On ^*:QUIT: {

Code:
On *:QUIT: {
  if (!$window(@test)) { return }
  var %i = 1, %n = $comchan($nick,0), %output
  while (%i <= %n) {
    var %chan = $comchan($nick,%i)
    var %pnick = $nick(%chan,$nick).pnick
    var %output = %output %pnick on %chan /
    inc %i
  }
  echo -ti @test * $nick Quit: $left(%output,-1)
}

; Type '/window -eiz @test' to activate.


Does this satisfy the feature you were asking for?


Well. At least I won lunch.
Good philosophy, see good in bad, I like!