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

Stuart Prescott bugs.kde.org at nanonanonano.net
Wed Sep 9 19:31:56 CEST 2009


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


Stuart Prescott <bugs.kde.org at nanonanonano.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugs.kde.org at nanonanonano.n
                   |                            |et




--- Comment #11 from Stuart Prescott <bugs kde org nanonanonano net>  2009-09-09 19:31:55 ---
There seem to be two different classes of bug that have been merged into this
as duplicates:

a) internal scripting: allow a lot of things to be done and provide
event-driven scripting with things such as onJoin, onPart, onOp,
(onStatusChange, onModeChange etc) as well as the same sort of scripting that
can be currently done through dcop (e.g. /weather; /exec getnickback; /uptime
from the examples)

b) improved external scripting API: via (dcop)/dbus that is not event driven
but still allows a lot to be done. There are currently very few calls that
return information -- they are mostly about remote control of the irc session
(setAway, say("now playing") etc). Providing a few more functions that return
data would solve a lot of this. A few that I've recently wished I had are:

  isOp(server, channel, nick)             // return true/fase
  userModes(server, nick)                 // return +eRo
  userModes(server, channel, nick)        // return +b (maybe?)
  channelModes(server, channel)           // return +tncPLlfJ 945
  userHostmask(server, nick)              // return
n=username at unaffiliated/cloak or user at 127.0.0.1 etc
  channelLogFile(server, channel)         // return /path/to/logfile
  isChannelLogged(server, channel)
  listChannels(server)

(not all of these are necessary; there's some level of overlap between them)


(a) is hard; (b) looks much easier and will achieve many of the same goals for
a lot of scripting problems.

Food for thought...

-- 
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