Project

General

Profile

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

Mr. BS, 03/11/2015 05:35 AM

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

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

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