Ticket #333 (new defect)

Opened 3 years ago

Last modified 2 years ago

AS - 3 Add event message problems & error

Reported by: niteshade Assigned to: timothy
Priority: low Component: AppleScript Support
Version: 2.0 (2D16) Severity: minor
Keywords: Applescript Add event message display echo error Cc:

Description

Three problems noted.

1. Including control characters in the text being sent through add event message causes a blank line to be displayed instead

2. Inclusion of control characters for bold etc that are a de facto standard on pretty much all clients do not work either when text is sent through AS via the add event message, or when shown in the channel by other clients.

3. Sending a blank variable to the add even message causes an error

I didn't check to see how "send message" handles this

Demonstrated in the following lines

tell application "Colloquy" to add event message (ASCII character 2) & "hello"

tell application "Colloquy" to add event message ""

Change History

09/28/05 23:12:11 changed by niteshade

  • component changed from Colloquy (GUI) to AppleScript Support.

09/29/05 01:20:07 changed by niteshade

Three problems noted.

1. Including control characters in the text being sent through add event message causes a blank line to be displayed instead

2. Inclusion of control characters for bold etc that are a de facto standard on pretty much all clients do not work either when text is sent through AS via the add event message, or [with the BLAND style] when shown in the channel by other clients.

3. Sending a blank variable to the add even message causes an error

I didn't check to see how "send message" handles this

Demonstrated in the following lines

tell application "Colloquy" to add event message (ASCII character 2) & "hello"

tell application "Colloquy" to add event message ""

09/29/05 02:35:50 changed by timothy

Control characters are used for bold etc. in Colloquy. We use HTML for this, so "<b>bold</b>" gives you what you want, same for send message. Control characters mess up XML, thats why you get a blank line. We should strip control chars.

06/08/06 02:06:33 changed by brennan@young.net

How about this: Colloquy should provide a scripting interface for converting 'traditional' (i.e. mIRC's horrible defacto standard) IRC formatting codes into HTML.

This would solve a bunch of issues that scripters are having. (See for example <http://project.colloquy.info/ticket/556 )