Originally Posted By: Wims
Code:
if ($2 == 353) sockwrite -n buzz.avoLocal $1-5 $+(:,$replace($mid($6,5,1),V,+,O,@,H,%),$gettok($6,2,44)) $gettok($7,2,44)
Don't use regex if you don't need them and especially if you don't know them.I've guessed O for op and H for halfop but just change that


Thanks but I have problems with this

Code:
alias rtest {
  var %server_str =  :FlashIrcServer.1 353 Paul = $(%#!!Roomy, ) :UMPV,.Damien UUNV,@Sarah UMNV,@Sid UMNV,.Manny[4]

  tokenize 32 %server_str

  var %output = $1-5 $+(:,$replace($mid($6,5,1),V,+,O,@,H,%),$gettok($6,2,44)) $gettok($7,2,44)

  echo -a %output
}

It echos

:FlashIrcServer.1 353 Paul = %#!!Roomy :+.Damien @Sarah

Firstly, it is missing the other nicknames,
Secondly, it needs to be .+Damien

any ideas? many thanks.

The last letter of the 4 letter code can only be V or N - noting else. V = voiced. N = not voiced. dnt care about other symbols

Last edited by pouncer; 27/12/09 12:17 AM.