Re: [cgiirc-general] Opening Notification Windows
Brought to you by:
dgl
|
From: David L. <dg...@dg...> - 2003-10-10 10:57:21
|
Michael Bond wrote:
> is there a way to have the formats in /cgiirc/formats (default, gothic,
> etc ...) print straight HTML?
>
> I tried adding a {open_window} tot he join line and creating a
> "open_window = <script>foo()</script>" but it only printed it to the
> screen. it did not get sent as html.
Things are much different in 0.5 I'm afraid, even if you did somehow
manage to get <script> into the output stream it would not work how you
expect (it would do whatever the script line does every time a new
line is added (I think)). What you need to do is modify some of the already
existing javascript to do what you want, you could for example if you are
using 0.5.3pre1 as your code base modify the (client side) code that sends
the sound on join, to also open a window (it's function playsound or
function joinsound i think).
Extensibility rather suffered with the rewrite to 0.5, I intend to make it
much easier in the next version - probably event based, so you just add an
event handler for the event you want to modify.
Of course I've been going on about a new version for about 10 months now ;)..
|