Development > Coding and development discussion

Improving relay over IRC

<< < (2/6) > >>

Alreadythere:
What char is [COLOR]? Or is that something else? Got no real clue about IRC tbh :)

Vhab:
my bad, seems i forgot that one.
it's ascii 3

Alreadythere:
Implemented and working, just got to wait for the SVN to be back up to commit it.

Vhab:
nice :D

Alreadythere:
One question:


--- Code: ---$msg = preg_replace("/<a href=\"(.+)\">/isU", "[link]", $msg);
$msg = preg_replace("/<\/a>/iU", "[/link]", $msg);
$msg = preg_replace("/<font(.+)>/iU", "", $msg);
$msg = preg_replace("/<\/font>/iU", "", $msg);
--- End code ---
The code above is in the gmsg() and privgroup() functions, removing ingame blobs and colors.

Is there any way to format it in a decent way for IRC while saving all information so the tags can be recreated on the other bots of the relay?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version