Commit Graph

24 Commits

Author SHA1 Message Date
Kyle Fuller 12d1a5a422 modpython: Show (module/__init__.py) in listavailmods 2011-09-05 17:38:37 +00:00
Kyle Fuller d14528b59e Allow loading python modules with modpython (ex. modname/__init__.py)
Fixes #58
2011-08-31 17:26:04 +00:00
Kyle Fuller e70b6854a3 Fix modp{erl,ython}, these modules should set a "default" module type for its submodules
These modules were broken by d48ae679c4
2011-08-30 20:50:06 +00:00
Kyle Fuller 260421e6e8 Make modpython support network modules 2011-08-25 21:17:28 +01:00
Alexey Sokolov fca0d83de8 Fix modpython about renaming EModuleType. 2011-08-22 00:55:45 +07:00
Kyle Fuller 274d3eb2ec Make modpython support different module types 2011-08-21 13:34:23 +01:00
Alexey Sokolov 0c9eae226e Fix global python modules. 2011-08-21 13:34:23 +01:00
Kyle Fuller c456d20b21 Merge CGlobalModule(s) into CModule(s) 2011-08-21 13:34:22 +01:00
Kyle Fuller a4b155995c Create EModuleType, creating SetType which replaces SetGlobal 2011-08-21 13:34:22 +01:00
Alexey Sokolov f7c4f5459c Support wiki pages names in python modules.
Also this fixes showing python modules in available modules list.
2011-06-11 18:28:46 +07:00
Kyle Fuller 0b360c0102 Remove OnDCCUserSend module hook 2011-06-01 20:21:27 +01:00
Alexey Sokolov e51b7daedc Merge branch 'py' of https://github.com/kylef/znc into kylef-py
Conflicts:
	modules/modpython/znc.py
2011-04-03 20:13:17 +07:00
Uli Schlachter f0bf7134ec Improve the handling of module load messages
Instead of doing ugly stuff to shorten the "Loaded Module [foo]" message, we now
just always generate the shorter version of that message. The code paths which
didn't do this shortening now prepend that message themselves.

The result is that every message looks the same as it did before, but the code
for generating these is a little nicer.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-04-02 16:52:52 +02:00
Kyle Fuller 233566edb6 Cleanup znc.py 2011-04-01 18:23:36 +01:00
Kyle Fuller 14452a1cb5 Make znc.py follow pep8 2011-04-01 18:23:24 +01:00
Kyle Fuller 9db98d7cee Add __str__ methods to CModule, CUser, CChan, and CNick in modpython 2011-04-01 01:19:57 +01:00
Uli Schlachter 23fb4df67a Remove config-related module hooks
This removes the following module hooks:

OnConfigLine()
OnWriteConfig()
OnWriteUserConfig()
OnWriteChanConfig()

Modules could use these hooks for writing/reading their own stuff to/from
znc.conf. However, no module (ever?) did this and IMHO no module should ever do
this either. Modules can save stuff via SetNV(), module arguments (SetArgs())
and in their GetSavePath().

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-03-31 17:29:49 +02:00
Kyle Fuller 7162b01111 Add the OnIRCConnectionError(CIRCSock *pIRCSock) module hook 2011-03-30 19:15:42 +01:00
darthgandalf 3422d95780 Add copyright header for some files of modpython which were forgotten before.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2267 726aef4b-f618-498e-8847-2d620e286838
2011-01-15 19:01:14 +00:00
darthgandalf e4b48d50b3 Fix for previous commit.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2217 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 12:16:33 +00:00
darthgandalf 9745dcb4ea Python modules use 'description' attribute of the class now.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2208 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 16:45:22 +00:00
darthgandalf 1854e14749 Make NV API to be easier fot python modules.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2204 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 15:04:23 +00:00
darthgandalf 88c84efc2f Fix error in loading of python modules.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2203 726aef4b-f618-498e-8847-2d620e286838
2010-12-24 07:31:44 +00:00
darthgandalf a564e25c13 Add modpython module which allows to write ZNC modules on python3.
Notice for distro maintainers: perl interpreter is required to compile modpython.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2196 726aef4b-f618-498e-8847-2d620e286838
2010-12-22 14:52:53 +00:00