Artem Shinkarov
705a946882
Adding plugin interface for C files.
...
Implementation of hooks using C interface basedon dlfcn. Added test
plugin and makefile to build it. In order to test it add the followin
into your profrc:
[plugins]
load=test-c-plugin.so
and execute profanity piping stderr to some file. The file should
contain all entries whenever the plugin function is triggered. It seem
to be workin but some parts are missing.
2013-08-18 03:55:20 +01:00
James Booth
ffb565a16a
Removed unused includes in python_api
2013-08-18 00:43:28 +01:00
James Booth
eadb90dc43
Renamed hook on_message -> on_message_received
2013-08-18 00:26:14 +01:00
James Booth
eead7ea7e3
Removed python.h depdendency from callbacks.c
2013-08-18 00:17:23 +01:00
James Booth
9ca23ed24e
Moved python callbacks
2013-08-18 00:12:29 +01:00
James Booth
f15b61e4cb
Language wrappers for callbacks
2013-08-18 00:10:10 +01:00
James Booth
8cae5c13b0
Refactored plugin callbacks
2013-08-17 23:41:53 +01:00
James Booth
79b5d89f23
Fixed includes to remove compile warning
2013-08-17 23:25:05 +01:00
James Booth
d2b15cad7c
Moved python init and shutdown
2013-08-17 23:21:32 +01:00
James Booth
67972f8eac
Pulled out common api into api.c, added python bindings
2013-08-17 23:16:14 +01:00
James Booth
2ac4a183d0
Added python_plugin_create()
2013-08-17 22:51:25 +01:00
James Booth
580b14ab68
Added plugin load list as preference, moved python hooks
2013-08-17 22:42:44 +01:00
James Booth
140a2ad0e3
Merge branch 'master' into plugins
...
Conflicts:
.gitignore
2013-08-13 21:42:01 +01:00
James Booth
2e2c1b67a4
Removed time import from cricket plugin
2013-08-11 22:19:47 +01:00
James Booth
90397f8160
Updated cricket plugin
2013-08-11 22:12:34 +01:00
James Booth
b1768f942c
Set status to 0.4.0 development
2013-08-11 18:42:54 +01:00
James Booth
520d2129ea
Set status to release
2013-08-11 17:06:08 +01:00
James Booth
22c521d662
Use patched version of apt-cyg
2013-08-11 17:00:06 +01:00
James Booth
dc896b27d4
Renamed plugins_command_run
2013-08-11 13:49:59 +01:00
James Booth
dae4244306
Added command to cricket-scores plugin
2013-08-11 13:47:54 +01:00
James Booth
ffb1359889
Added get_current_recipient to api
...
Browser plugin now uses last link received in a chat window
2013-08-11 01:35:11 +01:00
James Booth
d8eb320b85
Added on_message hook
...
Browser plugin now uses last received hyperlink when no arg supplied
2013-08-11 01:00:21 +01:00
James Booth
462b09a546
Fix ctrl + arrow keys for fedora
2013-08-10 20:47:56 +01:00
James Booth
ad86280220
Fixed cygwin expat dependency for new versions
2013-08-09 00:15:40 +01:00
James Booth
9f76a5e610
Added browser plugin, allow up to 5 args for command callbacks
2013-08-08 01:40:03 +01:00
James Booth
3db9fb75ee
Added TODO and plugins/ to .gitignore
2013-08-06 20:24:14 +01:00
James Booth
ab45239033
Added connect.py plugin, refactored init and start events, added send_line
2013-08-06 00:29:12 +01:00
James Booth
de3d46becc
Merge branch 'master' into plugins
2013-08-05 23:18:35 +01:00
James Booth
42eef398b4
Free Jid
2013-08-05 23:12:10 +01:00
James Booth
c6e9a7455d
Undo change to stanza check for nick change return value
2013-08-05 23:08:30 +01:00
James Booth
1525be6133
Refactor MUC self presence checks
2013-08-05 22:55:11 +01:00
James Booth
55282e063d
Handle when servers dont send status 101 or jid for MUC nick changes
2013-08-05 21:20:07 +01:00
James Booth
b0e423cc0d
Fix to cricket plugin
2013-08-04 20:58:43 +01:00
James Booth
f17dc5b4ca
Added plugins_run_timed to plugins.h
2013-08-04 19:57:25 +01:00
James Booth
a56b9e1f73
Cleared newline loading plugins
2013-08-04 19:31:06 +01:00
James Booth
9bbe8def98
Added cons_alert to python API
2013-08-04 18:57:33 +01:00
James Booth
084b03691e
Implemented time python callbacks
2013-08-04 18:43:46 +01:00
James Booth
13bef17c0b
Added register_timed to plugins api
2013-08-04 17:50:35 +01:00
James Booth
9e6a6f224f
Merge branch 'master' into plugins
2013-08-04 17:06:00 +01:00
James Booth
e170965c93
Added patch from Dmitry to fix crash on delayed message from contact not in roster
...
fixes #219
2013-08-04 17:04:15 +01:00
James Booth
d638a4825e
Added notify to python API
2013-08-04 16:42:25 +01:00
James Booth
17e14347e3
Add plugin commands to command autocompleter
2013-08-03 03:20:17 +01:00
James Booth
c3acda5da7
Added /whoami command plugin
2013-08-03 02:45:26 +01:00
James Booth
5464d5079b
Added plugins commands
2013-08-03 02:21:43 +01:00
James Booth
dded9e954f
Separated python api and plugins code
2013-08-03 00:58:04 +01:00
James Booth
8d2d71bacb
Renamed plugins files
2013-08-03 00:48:22 +01:00
James Booth
35d4f42466
Renamed api module -> plugins
2013-08-03 00:43:05 +01:00
James Booth
bf19ffb910
Refactored calling plugin functions
2013-08-03 00:40:10 +01:00
James Booth
d3a8d0c610
Changed helloworld plugin connect event output
2013-08-03 00:31:58 +01:00
James Booth
6cb32996a5
Added on_connect event to plugins api
2013-08-03 00:22:00 +01:00