Project

General

Profile

Rawx » History » Version 11

Per Amundsen, 02/16/2023 03:07 PM

1 1 Per Amundsen
_Added in 1.9.3_
2
3
*/rawx [-nq] <command>*
4
5
Sends the specified command directly to the server. You must know the correct raw format of the command you are sending.
6 2 Per Amundsen
7 3 Per Amundsen
Same as [[/raw]] but evaluates a variable instead of text and allows sending consecutive spaces.
8 1 Per Amundsen
9
*Switches*
10
11 11 Per Amundsen
table(ktable).
12
|*Switch*|*Description*|
13
| -n | Prevents characters in the range 0-255 from being UTF-8 encoded, as long as the line contains characters only in the range 0-255. |
14
| -q | Makes the command work quietly without printing what it is sending. |
15 1 Per Amundsen
16
*Parameters*
17
18 11 Per Amundsen
table(ktable).
19
|*Parameter*|*Description*|
20
| <command> | The command to send to the server. |
21 1 Per Amundsen
22
*Example*
23
24
<pre>
25
;Create a variable with the text PRIVMSG #channel :a    b
26
/var %var PRIVMSG #channel :a $+ $chr(32) $+ $chr(32) $+ $chr(32) $+ $chr(32) b
27 4 Per Amundsen
28 1 Per Amundsen
;Sends the output of %var to the server.
29
/rawx %var
30 5 Per Amundsen
31
;Add a on INPUT event that listens for /example command.
32
on *:INPUT:*:if ($1 == /example) { 
33 8 Per Amundsen
34 5 Per Amundsen
  ;Put the consecutive spaced message into a variable
35 7 Per Amundsen
  var %text PRIVMSG # : $+ $mid($msgx, $calc($len($1) + 2), $len($msgx)) 
36 5 Per Amundsen
37
  ;Send the message
38
  /rawx %text 
39
}
40 1 Per Amundsen
</pre>