This does not work
tell application "Colloquy"
tell active panel of front window to send message "hello world"
end tell
It fails, mentioning that the 'to' parameter is missing. If you include an explicit 'to' parameter (in place of the tell) it fails with the same error
tell application "Colloquy"
send message "hello world" to active panel of front window
end tell
The following works
tell application "Colloquy"
set t to active panel of front window
tell t to send message "hello world"
end tell
IMNSHO the 'to' parameter should be the first (unnamed/optional) parameter and the message should be a required named parameter. Applescript implementations usually treat the first (unnamed/optional) parameter as the tell target, defaulting to whatever is the current tell target if the parameter is omitted. I know the scripts should be backwards compatible, but this is just what most Applescripters will expect.