Opened 14 years ago

Closed 10 years ago

Last modified 10 years ago

#333 closed Defect (Won't Fix)

AS - 3 Add event message problems & error

Reported by: niteshade Owned by: timothy
Component: Colloquy (Mac) Version: 2.0 (Mac)
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
  1. 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.
  1. 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 (5)

comment:1 Changed 14 years ago by niteshade

  • Component changed from Colloquy (GUI) to AppleScript Support

comment:2 Changed 14 years ago 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
  1. 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.
  1. 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 ""

comment:3 Changed 14 years ago 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.

comment:4 Changed 13 years ago by brennan@…

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 )

comment:5 Changed 10 years ago by Rinoa

  • Resolution set to wontfix
  • Status changed from new to closed

To send bold, etc, in Applescript, you use HTML. Then Colloquy converts it to the IRC format.

Note: See TracTickets for help on using tickets.