Commit Graph

71 Commits

Author SHA1 Message Date
Alexey Sokolov
5b5ab5cf83 Support python 3.9
Fix #1702
2020-01-05 11:18:44 +00:00
MAGIC
9081aa971d Welcome to 2020 2020-01-02 00:36:05 +01:00
dgw
8d5427cf9b Welcome to 2019
What are we going to do today, Brain?

The same thing we do every year, Pinky: Update all the copyright
headers!

[Skip CI]
2019-01-01 17:05:05 -06:00
Alexey Sokolov
6eaa93f8da Fix python sockets after latest changes.
The issue was triggered by CCoreTranslationMixin being parent of
CZNCSock, and DisableReadLine wasn't found as attribute anymore.

Thanks to obiw4n for report.
2018-03-27 22:26:05 +01:00
Falk Seidel
d647eaabc0 Welcome to 2018
The same procedure as last year, Miss Sophie?
The same procedure as every year, James.

[skip ci]
2018-01-19 19:38:58 +00:00
Alexey Sokolov
7e94158c6d More strings to translate #1354 2017-09-08 00:03:27 +01:00
MuffinMedic
74ab8e59d3 Add CQuery(s) and CServer(s) to modpython 2017-08-27 14:27:25 -04:00
Alexey Sokolov
ef5ace9b86 Travis: Also count code coverage of modpython 2017-05-28 08:52:37 +01:00
Eli Young
823ac07240 Add OnSendToIRCMessage and OnSendToClientMessage
This also alters PutClient such that the CMessage variant handles
sending messages, rather than the CString variant. As a side bonus, this
gives callers better information on whether the message was sent to the
client. Additionally, it eliminates the need for a hook to let modules
set the tags sent to a client, as that can now be done inside
OnSendToClientMessage.
2017-04-18 15:43:16 -07:00
Phansa
3189ce7f8a Welcome to 2017
Welcome to 2017

temp

temp2
2017-03-12 20:34:26 -04:00
Alexey Sokolov
455b5f8076 Merge branch '1.6.x' 2017-02-19 10:33:01 +00:00
Alexey Sokolov
0679957340 Fix regression of 1.6.4 which caused crash in modperl/modpython.
See #1283
2017-02-19 10:30:44 +00:00
Alexey Sokolov
1bb0199ec4 Fix missing renames in #1191 2017-01-08 10:06:21 +00:00
Alexey Sokolov
cc653efb6b Rename translation methods to be not one letter.
It fixes several warnings, when the name was shadowed by a local "p".
2016-09-12 00:01:45 +01:00
Alexey Sokolov
8863bed13d Support translation in python modules 2016-01-31 20:09:19 +00:00
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
cbf5c38d0a Teach modperl and modpython about CMessage and new hooks which accept it.
Fix #1084
Fix #1085
2015-11-22 23:39:30 +00:00
J-P Nurmi
e62ed5f300 modperl & modpython: fix GetType() at module construction time 2015-03-07 21:54:33 +01:00
OGAWA Hirofumi
feec20b013 Add OnUserQuit() for extending clearbufferonmsg
Add OnUserQuit() callback. On smartphone, user doesn't want to see
same lines repeatedly. But, meanwhile, user doesn't want to miss lines
when connection was lost.

To do it, this uses OnUserQuit() callback. With this callback,
clearbufferonmsg can clear buffer if user quited client explicitly.
And when connection was lost, buffer is still not cleared.
2015-02-22 04:33:14 +09:00
Falk Seidel
2e29d49a53 Welcome to 2015 2014-12-31 11:28:38 +01:00
Martin Martimeo
a66c6164a7 Release python/swig ownership when adding object created in python to ZNC container
Patch by MartinMartimeo (#538)
2014-12-16 13:40:06 +00:00
Alexey Sokolov
15283da006 Merge pull request #721 from markusj/modpy-can-have-args
modpython: Use has_args and args_help_text from module
2014-10-29 06:38:28 +00:00
Alexey Sokolov
1a8f15d510 Support CZNC::GetUserMap() from modpython.
Thanks to lol768 for reporting it.
2014-10-28 07:22:50 +00:00
Markus Jung
79d8ae7432 modpython: set has_args and args_help_text from module 2014-10-28 01:23:31 +01:00
Alexander Færøy
db0e0995e2 Add OnJoining module hook.
This patch adds an OnJoining module hook that allows a module to allow
or disallow joining any given channel.
2014-05-29 23:10:30 +02:00
Alexey Sokolov
9cf61ac6d4 Argh, fuck it. Rename fixed (pointer) versions of OnMode to OnMode2 2014-04-12 08:51:04 +01:00
J-P Nurmi
76bfa99dd0 Add module hooks for raw client and server messages 2014-03-04 00:24:15 +01:00
Alexey Sokolov
366158d907 Add charset to version info 2014-01-25 13:50:07 +00:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
Alexey Sokolov
2a7bc29fcc Fix new OnAdd/DeleteNetwork hooks for perl/python 2013-11-09 10:17:34 +04:00
Alexey Sokolov
b2dcad5fd4 Change ZNC license to Apache 2.0
The following people agreed with the change, in alphabetical order:
(people who approved in several ways are listed only once)
By email:
- Adam (from Anope)
- Austin Morton
- Brian Campbell
- Christian Walde
- Daniel Holbert
- Daniel Wallace
- Falk Seidel
- Heiko Hund
- Ingmar Runge
- Jim Hull
- Kyle Fuller
- Lee Aylward
- Martin Martimeo
- Matt Harper
- Michael J Edgar
- Michael Ziegler
- Nick Bebout
- Paul Driver
- Perry Nguyen
- Philippe (cycomate)
- Reuben Morais
- Roland Hieber
- Sebastian Ramacher
- Stefan Rado
- Stéphan Kochen
- Thomas Ward
- Toon Schoenmakers
- Veit Wahlich
- Wulf C. Krueger

By IRC:
- CNU
- Jonas Gorski
- Joshua M. Clulow
- Prozac/SHiZNO
- SilverLeo
- Uli Schlachter

At https://github.com/znc/znc/issues/311 :
- Alexey Sokolov
- Elizabeth Myers
- flakes
- Jens-Andre Koch
- Jyzee
- KindOne/ineedalifetoday
- Lee Williams
- Mantas Mikulėnas
- md-5
- Reed Loden

At the last few pull requests' comments:
- Allan Odgaard
- Jacob Baines
- Lluís Batlle i Rossell
- ravomavain
- protomouse

The following commits' authors didn't respond:
Trivial changes:
- f70f1086fd
- 4ca8b50e45

The changes which are not presented in master anymore:
- 5512ed2ea0
- 960a4498f7
- 0f739de2c0
- 7f53cc810b

Fix #311
Fix #218
2013-06-14 00:43:34 +04:00
Un1matr1x
3a34593359 The same procedure as last year, Miss sophie?
Same procedure as every year, James.
2012-12-31 12:44:31 +01:00
Alexey Sokolov
f80ae4aad6 Various fixes of modperl and modpython.
Including cygwin support #216
2012-08-27 00:40:11 +07:00
Alexey Sokolov
d56c443715 Perl+python: add arguments help text. 2012-08-26 10:17:50 +07:00
Alexey Sokolov
ac1b183583 Modpython: MCString as a normal dict-like object.
See github issue #93
2012-07-28 02:57:31 +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
Kyle Fuller
9b219289a6 Python: Override __eq__ to allow comparison of strings
Closes #135
2012-02-28 18:08:57 +00:00
Kyle Fuller
9d7c0d050b python: Allow iterating over CModules
Closes #137
2012-02-28 18:05:49 +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
Alexey Sokolov
f374874b1a Fix several issues in modpython.
1. In several cases CString wasn't handled properly.
2. Some container-like object didn't return from functions properly.
3. Buffer.h was missing
2012-01-02 14:40:50 +07:00
Alexey Sokolov
78c6b1edd2 Fix moddata path for python modules.
How did it ever work before? ><
2012-01-01 22:04:22 +07:00
Alexey Sokolov
a0cd9d4cee Merge branch 'master' of github.com:znc/znc 2012-01-01 16:59:36 +07:00
Alexey Sokolov
c8a4668bbf Unload all python modules when modpython is unloaded.
Only user modules were unloaded before.
2012-01-01 16:46:21 +07:00
Un1matr1x
73270ff023 Welcome in 2012 2012-01-01 09:30:19 +01:00
Alexey Sokolov
6443563bd5 Python modules are network mods by default. 2011-12-29 18:58:46 +07:00
Alexey Sokolov
3fd0429e1e Python: Use znc.Socket if no socket class is specified in CreateSocket()
Thanks to Azelphur for giving this idea.
2011-11-19 11:47:47 +07:00
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