Reverse $2 $3 for one chan only - 14/11/05 07:22 PM
Yet another small problem.
I am geting data from diffrent chans, which are done by [/i]!input Jegermaister 42[/i]. This works great with script below, BUT there's one chan, #c-chan, that adds it in diffrent order (!input 420 Jegermaister).
How could reverse %input and %data for this chan only?
Could i use something like if ($chan = #c-chan) { %input = $3 | %data = $2 } ..huh?
I am geting data from diffrent chans, which are done by [/i]!input Jegermaister 42[/i]. This works great with script below, BUT there's one chan, #c-chan, that adds it in diffrent order (!input 420 Jegermaister).
How could reverse %input and %data for this chan only?
Code:
on *:TEXT:!input *:#a-chan,#b-chan,#c-chan: { var %input = $2 var %data = $3 .. write c:\stuff.txt %2 %3
Could i use something like if ($chan = #c-chan) { %input = $3 | %data = $2 } ..huh?