I see that you have used regex in your code, why not take advantage of it more?
This:> if ($1 == !rlink) || ($1 == .rlink) || ($1 == @rlink) { $iif($left($1,1) == @,/msg #,/notice $nick) Here is your random link: $linkss | .ignore -u2 $nick }
if ($1 == !lastlink) || ($1 == .lastlink) || ($1 == @lastlink) { $iif($left($1,1) == @,/msg #,/notice $nick) This is last link that has been saved: %lastlink | .ignore -u2 $nick }can be done as:
if ($regex($1,/^([!@.])(r|last)link$/iS)) {
$iif($regml(1) == @,msg #,notice $nick) $iif($regml(2) == r,$&
Here is your random link: $linkss,$&
This is last link that has been saved: %lastlink)
.ignore -u2 $nick
}