This Code creates the alias Replay.
You can replay any chosen channel from any network or leave parameters blank to replay all.
I will make a way where you can do /replay 10 for ten lines but that replay the channel 10
Useful if mIRC Crashed.
It works with the following window types:
Query
Channel
Status Window
;Replay script.
; Usage: replay [#channel/window] [lines] [network]
; example: replay #help 10
; Lines are optional if ignored the script replays the whole log. (Laggy)
; This script will not spam channels for other users.
; If all parameters are blank the current network and channel is replayed.
; The channel will be cleared so you dont end up with double the log.
alias replay {
clear
var %net $iif($3,$3,$network)
if ($active == Status Window) {
var %window status
}
else {
var %window $active
}
var %chan $iif($1,$1,%window)
var %log $+(logs/,%chan,.,%net,.log)
var %lines $iif($2,$2,$lines(%log))
echo -g 12Lines in %log $+ : %lines
var %x = 1
while (%x <= %lines) {
var %text $read(%log,%x)
tokenize 32 %text
if ([ isin $1) {
if ($2 == Session) {
if ($3 == Ident:) {
echo -g 7 $+ $4 $+ 's Ident: $remove($7,(,))
}
}
else {
echo -g $remove($1,[,]) $2-
}
}
elseif ($2 == Start) || ($2 == Close:) {
echo -g 4 --- $+ $1-2 $+ --- 7 $3-
}
inc %x
}
}