Project

General

Profile

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

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

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

    
5
; Usage:
6
; /f <text> == local only.
7
; /f2 <text> == local and remote.
8

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