You just need to copy this onto your remotes.
on *:JOIN:#: if ((!%record. [ $+ [ $chan ] ]) || (%record. [ $+ [ $chan ] ] < $nick($chan,0))) set %record. [ $+ [ $chan ] ] $nick($chan,0)
on *:PART:#: if ((!%record. [ $+ [ $chan ] ]) || (%record. [ $+ [ $chan ] ] < $nick($chan,0))) set %record. [ $+ [ $chan ] ] $nick($chan,0)
on *:TEXT:!Record:#: if (%record. [ $+ [ $chan ] ]) msg $chan 4The channel record is:[12 $+ $ifmatch Users4] | else msg $chan 12No channel record set 4] } }