Building an away plugin for maki

Asked by Luke Faraone on 2010-03-26

Hi,

I'd like to augment the system so that, if there are no clients connected to maki, or all the connected clients are "away", and a hilight message arrives, that the message be dispatched via a remote API call. (specifically, http://prowl.weks.net/)

From what I can tell reading the documentation, it looks like plugins are only implementable in clients, you can't modify the core without rebuilding from source.

If that's correct, would the proper approach be to create a DBus client of maki which attached to proper signals and handled the notification?

Question information

Language:
English Edit question
Status:
Solved
For:
maki IRC daemon Edit question
Assignee:
No assignee Edit question
Last query:
2010-03-26
Last reply:
2010-10-14
Marian (nemo-ikkoku) said : #1

Hi.

Yes, you are right.
Due to the fact that all actions are handled via DBus there's no need for maki to provide a special plugin API.

You can find a listing of the DBus methods and signals in the maki source package (in the data folder)
or you can look here: http://git.ikkoku.de/?p=sushi/maki;a=blob;f=data/dbus.xml;h=a8e67c0717202f5753359081d1817280ccd0f328;hb=HEAD

Regards

Michael Kuhn (suraia) said : #2

In fact, maki kind of has support for plugins (see http://git.ikkoku.de/?p=sushi/maki;a=tree;f=source/plugins;hb=HEAD), but we currently do not expose a special (stable) plugin interface. The easiest way would probably be to write a simple Python plugin.

Another problem is that maki currently does not track connected clients, that is, we do not know whether a client is listening or not.

Michael Kuhn (suraia) said : #3