alias users {
.remove users.html
.fopen -n a users.html
.fwrite -n a <html><head><title>Current Users on # </title></head><body bgcolor="black" text="yellow">
.fwrite -n a <center>The current topic is<br> $strip($chan(#).topic) <hr width="50%"> $&
<h2>Current Users in # </h2><table border="1" bordercolor="blue">
var %i = 1
while $nick(#,%i).pnick {
if $left($ifmatch,1) isin @%+ {
.fwrite -n a <tr><td><center> $nick(#,%i) $&
$gettok(is an Op:is a HalfOp:is Voiced,$pos(@%+,$ifmatch,1),58) </center></tr></td>
}
else .fwrite -n a <tr><td><center> $nick(#,%i) is a regular user <center></tr></td>
inc %i
}
.fwrite -n a </table><br><hr width="50%"><br><u>The last 10 lines from # </u><br><br><br></center>
; Used Online's code for grabbing the channel lines :grin:
var %o = $line(#,0),%i = $iif(%o > 10,$calc(%o - 10),0)
while %i <= %o {
.fwrite a $strip($line(#,%i)) <br><br>
inc %i
}
.fwrite -n a <center><hr width=50%"> Updated Every 10 minutes<br>Last update $asctime(h:nn:ss tt z) $&
GMT <br> This has been updated by : $me </center></body></html>
.fclose a
run transer.bat.pif
.timer 1 15 msg # Hey you are famous, you're on the net @ http://mrurl.com/
}