1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-16 06:15:08 -05:00

Consistency FTW

This commit is contained in:
Berke Viktor 2012-10-28 10:53:15 +01:00
parent 6a9e7bb4d3
commit 1cf9209cd7

View File

@ -1,7 +1,6 @@
# HexChat Python Interface # HexChat Python Interface
Features ## Features
--------
Here are some of the features of the python plugin interface: Here are some of the features of the python plugin interface:
@ -16,8 +15,7 @@ Here are some of the features of the python plugin interface:
- Nice context treatment - Nice context treatment
- Plugin preferences - Plugin preferences
Commands ## Commands
--------
The following commands will be intercepted by the Python Plugin interface module, when it is loaded. The following commands will be intercepted by the Python Plugin interface module, when it is loaded.
@ -44,15 +42,13 @@ The following commands will be intercepted by the Python Plugin interface module
---------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------
Autoloading modules ## Autoloading modules
-------------------
If you want some module to be autoloaded together with the Python plugin If you want some module to be autoloaded together with the Python plugin
interface (which usually loads at startup time), just make sure it has a interface (which usually loads at startup time), just make sure it has a
`.py` extension and put it in your HexChat directory (~/.config/hexchat/addons, %APPDATA%\\HexChat\\addons). `.py` extension and put it in your HexChat directory (~/.config/hexchat/addons, %APPDATA%\\HexChat\\addons).
Context theory ## Context theory
--------------
Before starting to explain what the API offers, I'll do a short Before starting to explain what the API offers, I'll do a short
introduction about the xchat context concept. Not because it's something introduction about the xchat context concept. Not because it's something
@ -69,8 +65,7 @@ channel, and you have asked xchat to tell you about this event, the
current context will be set to this channel before your module is current context will be set to this channel before your module is
called. called.
Hello world ## Hello world
-----------
Here is the traditional *hello world* example. Here is the traditional *hello world* example.
@ -88,8 +83,7 @@ introduces some concepts. Notice how the module information is set. This
information is obligatory, and will be shown when listing the loaded information is obligatory, and will be shown when listing the loaded
xchat modules. xchat modules.
xchat module ## xchat module
------------
The xchat module is your passport to every xchat functionality offered The xchat module is your passport to every xchat functionality offered
by the Python plugin interface. Here's a simple example: by the Python plugin interface. Here's a simple example: