Project

General

Profile

[Deprecated] [Script] Avoid Consecutive Timestamp v0.1.3 » ACT v0.1.2.ini

Mr. BS, 06/01/2014 02:15 AM

 
; http://dev.adiirc.com/boards/5/topics/183
; Avoid Consecutive Timestamp
; v0.1.2 by pereba

on 1:LOAD:prefix
on 1:START:prefix
on 1:UNLOAD:unset %ACT.*

alias -l prefix { set %ACT.prefix $readini(config.ini, Messages, PrefixUser) }

;channel messages
on ^*:TEXT:*:#:{
if ($nick == %ACT.last. [ $+ [ # ] ] ) {
echo -rlmbf # $str($chr(160),$len($timestamp)) $&
$replace(%ACT.prefix,$!pnick,$nick(#,$nick).pnick,$!status,$left($nick(#,$nick,a,r).pnick,1),$!nick,$nick) $1-
halt
}
set %ACT.last. $+ # $nick
}

;pm/query
on ^*:TEXT:*:?:{
if ($nick == %ACT.lastpm) {
echo -rlmbf $nick $str($chr(160),$len($timestamp)) $replace(%ACT.prefix,$!pnick,$nick,$!status, ,$!nick,$nick) $1-
halt
}
set %ACT.lastpm $nick
}

on &*:INPUT:#: {
set %ACT.last $me
}

on &*:INPUT:?: {
set %ACT.lastpm $me
}
(2-2/3)