Project

General

Profile

[script] Fake messages v0.3.1 » Fake messages v0.3.1.ini

Mr. BS, 11/04/2015 03:46 AM

 
; http://dev.adiirc.com/boards/5/topics/182
; Fake messages
; v0.3.1 by pereba

; Usage:
; /f <text> == local only.
; /f2 <text> == local and remote.

on *:INPUT:#,?: {
if ($regex($1,/^(\/+)(f)(2)?$/)) && (!$ctrlenter) && ($2) && ($status == connected) {
var %msgx $mid($msgx, $calc($len($1) +2), $len($msgx))
var %msgx $iif($len($regml(1)) > 1,$(%msgx,2),%msgx)
var %rawx : $+ $ial($iif($chan,$me,$active)) PRIVMSG $active : $+ %msgx
if ($regml(3)) { var %text PRIVMSG $active : $+ %msgx | .rawx %text }
fakeraw %rawx
halt
}
}
(5-5/5)