regex help - 26/12/09 12:34 PM
When the server sends me a 353 reply it appears like this. Paul is me, Jonathon is in the room and is voiced. The last letter in the 4 letter code before the nickname, indicates whether the user is voiced or not (V = voiced, N = not voiced).
:FlashIrcServer.1 353 Paul = %#!!Roomy :UMNV,Jonathon UMNN,'Paul
I then send a 353 to my localhost socket
It sends
sockwrite -n buzz.avoLocal :FlashIrcServer.1 353 Paul = %#!!Roomy :Jonathon 'Paul
As you see, it should be sending
sockwrite -n buzz.avoLocal :FlashIrcServer.1 353 Paul = %#!!Roomy :+Jonathon 'Paul
so how could I change the regex to check for the last lettercode V and send a + symbol along with the nickname when i send my 353 to the localhost socket.
Quote:
:FlashIrcServer.1 353 Paul = %#!!Roomy :UMNV,Jonathon UMNN,'Paul
I then send a 353 to my localhost socket
Code:
if ($2 == 353) sockwrite -n buzz.avoLocal $1-5 $regsubex($6-, /([^:,\s]+,)/g, )
It sends
Quote:
sockwrite -n buzz.avoLocal :FlashIrcServer.1 353 Paul = %#!!Roomy :Jonathon 'Paul
As you see, it should be sending
sockwrite -n buzz.avoLocal :FlashIrcServer.1 353 Paul = %#!!Roomy :+Jonathon 'Paul
so how could I change the regex to check for the last lettercode V and send a + symbol along with the nickname when i send my 353 to the localhost socket.