Alexey Sokolov
85252f2f5b
Protect CreatePyModule from CModule*
2012-07-26 20:53:17 +07:00
Alexey Sokolov
62c9ac1a0b
using in headers is evil :(
2012-07-26 20:46:11 +07:00
Alexey Sokolov
03b5d815ee
Ups, remove unfinished function from modpython for now.
...
See #98
2012-07-22 21:25:25 +07:00
Alexey Sokolov
5656e14aa2
Progress on modpython global hooks.
...
OnModuleLoading, OnModuleUnloading, OnGetModInfo work fine.
Need to add: OnClientCapLs, OnGetAvailableMods, OnLoginAttempt
See #98
2012-07-22 18:27:07 +07:00
Alexey Sokolov
a131127770
Show commit id in version for git builds.
2012-07-21 23:27:53 +07:00
Kyle Fuller
9d7c0d050b
python: Allow iterating over CModules
...
Closes #137
2012-02-28 18:05:49 +00:00
Kyle Fuller
f4c2f911ae
modpython: Remove some global module hooks which won't work
...
OnLoginAttempt
OnClientCapLs
OnGetAvailableMods
2012-02-28 15:51:16 +00:00
Kyle Fuller
5995fc530e
Remove references to CAres from mod{python,perl}
2012-02-28 14:16:53 +00:00
Kyle Fuller
961e3a81c6
modpython: Support global module hooks #98
...
The commit doesn't add support for the following module hooks:
void OnClientCapLs(CClient* pClient, SCString& ssCaps)
EModRet OnLoginAttempt(CSmartPtr<CAuthBase> Auth)
The reason for this is they do not currently work with codegen.pl
2012-02-26 15:03:25 +00:00
Un1matr1x
73270ff023
Welcome in 2012
2012-01-01 09:30:19 +01:00
Kyle Fuller
260421e6e8
Make modpython support network modules
2011-08-25 21:17:28 +01:00
Uli Schlachter
80c76c97a6
Remove GLOBALMODCONSTRUCTOR
...
MODCONSTRUCTOR does that job just fine (now).
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-08-21 18:01:58 +02:00
Uli Schlachter
cce40e9f71
Move the EModuleType into CModInfo
...
This also renames the values to shorter and more "well sounding" names.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-08-21 16:30:36 +02:00
Kyle Fuller
b2d8f2ed62
Add CModInfo::SupportsType(EModuleType) and supply a module type with CModules::LoadModule
...
This would allow a module support multiple module types but CModule's do
not support this currently
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
Alexey Sokolov
ea58912093
Hide every symbol except ZNCModInfo from modules.
...
This means that now it's possible to have the same class names in
different modules, which reduces chances of weird errors.
Thanks to mclc for noticing this.
2011-07-15 22:56:47 +07:00
Kyle Fuller
0b360c0102
Remove OnDCCUserSend module hook
2011-06-01 20:21:27 +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
1d103351a9
Make modpython and modperl to work with new OnPart too.
...
Thanks, SilverLeo.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2216 726aef4b-f618-498e-8847-2d620e286838
2010-12-30 12:00:52 +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