[Konversation-devel] [Bug 114237] Implement event-driven scripting

larvid at gmail.com larvid at gmail.com
Fri Oct 30 00:38:28 CET 2009


https://bugs.kde.org/show_bug.cgi?id=114237


larvid at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larvid at gmail.com




--- Comment #12 from  <larvid gmail com>  2009-10-30 00:38:26 ---
I would also like to see event-based scripting in Konversation, and I have an
idea on how one could implement this.

Each time that an event occurs (for example a PRIVMSG is recieved),
Konversation will execute a corresponding bash/sh script (for example
~/.kde4/share/apps/konversation/events/privmsg). The parameters sent to this
script would in the case of PRIVMSGs be: server, target channel/user, the user
who sent the message, and the message itself. The script can return either true
or false (0 or 1). If false is returned, it will block the default action
(which in the case of PRIVMSGs would be to print the message, eventually
highlight the message and/or notify the user, etc).

To make this a bit more useful, there should be a few more D-Bus methods, such
as a method to print out a string on the screen as just another message, but
without sending anything to the server like say does.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list