devunt's xchat-script (rewrite of barosl-xchat-script)