Ok so in the alias if you want to use the first parameter you need $1 and not #
(# returns the channel name in events such as on text, on join etc.)
So for example an alias works this way: if you do
test glass wood iron

In the alias test
$1 will return glass
$2 will return wood
$3 will return iron
And so on..
So try msg $1 test

And also what i meant was using echo before the if and after the sockread! That way everthing will be printed to the active window
EDIT: CORRECTED EXAMPLE (sorry i'm sleepy :p)

Last edited by OrFeAsGr; 21/05/16 03:40 AM.