47 KiB
PyLink 0.9.2
Tagged as 0.9.2 by GLolol
The “Acorn” release.
Changes from 0.9.1
Bug fixes
- Relay now treats
{}
as valid characters in nicks. - Fixed services login tracking for older Anope services + UnrealIRCd. Previously, PyLink would incorrectly store login timestamps as the account name, instead of the user’s nick.
- Relay now normalizes
/
to.
in hostnames on IRCd-Hybrid. - Cloaked hosts for UnrealIRCd 3.2 users are now applied instead of the real host being visible.
PyLink 0.9.1
Tagged as 0.9.1 by GLolol on 2016-08-07T03:05:01Z
Important, backwards incompatible changes for those upgrading from 0.8.x!
- The configuration file is now pylink.yml by default, instead of config.yml.
- PyLink now requires installing itself as a module, instead of simply
running from source. Do this via
python3 setup.py install --user
. - The
use_experimental_whois
option for InspIRCd servers and thespawn_servers
option in Relay have been removed, as they are now implied.
Changes from 0.9.0
Bug fixes
- Fixed various bugs in channel TS handling (this should reduce mode desyncs with relay).
- protocols/unreal: fixed services account support for older services (e.g. Anope < 2.0) that don’t explicitly use account names for logins (#296).
- Mode changes are no longer sorted alphabetically when relayed: sorting now only applies for displaying a list of modes, such as in WHOIS.
- Invalid autojoin channels are now ignored, instead of passing potentially invalid data to the IRCd.
Feature changes
setup.py
now explicitly forbids installing on Python 2 (#297).- The
nefarious
protocol module now forwards MODE and KICK through servers if the sender isn’t opped, preventing many mode bounces, kick failures, and HACK server notices.
Internal fixes / improvements
- protocols/hybrid,ts6,unreal: Casemapping-specific lowercasing is now consistently used for channel names
- Relay now catches errors on network removal and ignores them.
- Channels names are now case normalized when receiving
@#channel
messages.
Misc. changes
- Minor example configuration updates, including a mention of
passwordless UnrealIRCd links by setting recvpass and sendpass to
*
.
PyLink 0.9.0
Tagged as 0.9.0 by GLolol on 2016-07-25T05:49:55Z
Important, backwards incompatible changes for those upgrading from 0.8.x!
- The configuration file is now pylink.yml by default, instead of config.yml.
- PyLink now requires installing itself as a module, instead of simply
running from source. Do this via
python3 setup.py install --user
. - The
use_experimental_whois
option for InspIRCd servers and thespawn_servers
option in Relay have been removed, as they are now implied.
Changes from 0.9-beta1
Added / changed / removed features
- PyLink is now slightly more descriptive if you try to start it with missing dependencies or a missing conf file.
- The PyLink API reference is now at https://pylink.github.io/ instead
of in
docs/technical
. - The
exec
andeval
commands now have access to thepylinkirc
andimportlib
imports by default. jupe
from theopercmds
plugin now requires the admin login instead of just oper.- opercmds:
kick
now treat channels case insensitively. - Documentation update: there are now guides to Automode and PyLink’s Services API.
Bug fixes
- Fixed the
reload
command (again). - Fixed compatibility with ircmatch 1.2: PyLink previously used features that were only available in the unreleased Git version.
- The
identify
command now responds with NOTICE instead of PM, behaving like any other command. Thanks to @Techman- for pointing this out. - The
identify
command must be called in private again. - Relay now shows secret channels in
linked
to those inside the channel, regardless of whether they’re opered. $channel:#channel:prefixmode
exttarget matching no longer raises errors if the target isn’t in the specified channel.
Internal improvements
- Redone version handling so
__init__.py
isn’t committed anymore. update.sh
now passes arguments to thepylink
launcher.
PyLink 0.9-beta1
Tagged as 0.9-beta1 by GLolol on 2016-07-14T02:11:07Z
Important, backwards incompatible changes for those upgrading from 0.8.x
- The configuration file is now pylink.yml by default, instead of config.yml.
- PyLink now requires installing itself as a module, instead of simply
running from source. Do this via
python3 setup.py install --user
.
Changes from 0.9-alpha1
Added / changed / removed features
- The
use_experimental_whois
option for InspIRCd servers is removed, and is now implied. - New config option
bot: whois_show_extensions_to_bots
, which optionally disables extended WHOIS replies for users marked as a bot (+B).- This increases security when relay is enabled, for bots that look for services logins in WHOIS.
- Automode has new
clearacc
andsyncacc
commands, for clearing and syncing access lists respectively. - Relay now allows nick tagging to be turned off by default, via the
option
relay: tag_nicks
(#116)- This is experimental, and nick tagging is still enabled by default.
- Any attempts to KILL or SVSNICK a relay client are treated to force
tag a nick, so things like
/ns release
,/ns ghost
, and/ns regain
should work with network services.
- Automode now only sends one MODE command per sync, to prevent changes from flooding channels.
- Relay separators can now be configured globally
(
relay: separator
option), with server-specific overriding that value if given.
Bug fixes
- corecommands: fix
unload
failing to remove hooks and commands (0.9.x regression). - protocols/nefarious: only send EOB_ACK to the direct uplink, preventing stray “acknowledged end of net.burst” messages from showing up. Thanks to Speakz on Evilnet IRC for reporting.
- protocols/unreal: fix server name of the uplink server not being saved (#268)
- Channel prefixes are now sorted in WHOIS output (i.e. no more wrong
@~#channel
), and only the highest prefix shown - Fixed issues in internal channel mode tracking (
c1cd6f4
58d71b0
) - WHOIS requests to the PyLink server for clients that aren’t PyLink
bots now work (syntax:
/raw whois pylink.server somenick
). “No such nick” errors are also sent when the target is missing, instead of raising warnings.- These WHOIS responses were previously sent from the wrong source (the server that the client was on, instead of the PyLink server), causing them to be ignored if they were going the wrong way.
- Automode now treat channels case insensitively in
delacc
. ascii
andrfc1459
case mappings now treat Unicode case sensitively, in the same way an IRCd would.
Internal improvements
- Removed inaccurate references to signon time in WHOIS and elsewhere.
- Changes to user timestamps are now tracked on NICK and SAVE commands
- Relay now creates relay clones with the current time as nick TS,
instead of the origin user’s TS.
- This has the effect of purposely losing nick collisions against local users, so that it’s easier to reclaim nicks.
PyLink 0.9-alpha1
Tagged as 0.9-alpha1 by GLolol on 2016-07-09T07:27:47Z
Summary of changes from 0.8.x
Backwards incompatible changes
- Configuration file is now pylink.yml by default, instead of config.yml.
- PyLink now requires installing itself as a module, instead of simply
running from source. Do this via
python3 setup.py install --user
.
Added / changed / removed features
- New
ctcp
plugin, handling CTCP VERSION and PING(and perhaps an easter egg?!) - New
automode
plugin, implementing basic channel ACL by assigning prefix modes like+o
to hostmasks and exttargets. - New exttarget support: see https://github.com/GLolol/PyLink/blob/0.9-alpha1/coremods/exttargets.py#L15 for a list of supported ones.
- Relay can now handle messages sent by users not in a target channel
(e.g. for channels marked
-n
) - Relay subserver spawning is now always on - the
spawn_servers
option is removed - Relay can now optionally show netsplits from remote networks, using
a
show_netsplits
option in therelay:
block - The
channels
configuration option inserver:
blocks is now optional, and defaults to no channels if not specified - The
maxnicklen
configuration option is also now optional, with a default value of 30 characters. --version
,--no-pid
, and--help
are now implemented by PyLink’s command line script- Test cases were dropped - they were broken and poorly maintained.
- CPUlimit wrapper scripts were removed.
- Service bots now allow plugins to define service descriptions and mark commands as featured when adding them.
- Command replies for services bots are now consolidated into core. In general, FANTASY commands now reply in channel as PRIVMSG, while all commands sent in PM reply as private notices.
- protocols/inspircd: new
use_experimental_whois
server option, which forces PyLink to handle WHOIS requests locally. This allows relay WHOIS extensions like account name and origin server name (whois_show_*
options) to actually work on InspIRCd networks. - PyLink can now optionally protect its services clients by setting
servprotect modes (InspIRCd umode
+k
,+S
elsewhere). The option for this isprotect_services
in thebot:
block. - The
networks
now deletes IRC objects whendisconnect
is used. To reconnect all disconnected networks, use therehash
command. - Relay now hides disconnected leaf networks from LINKED output.
Bug fixes
- Services bots will now ignore unhandled CTCP requests, instead of responding with “Unknown command”
- The
sid
field for TS6 servers now accepts unquoted numeric SIDs (integers) by normalize the SID to a string - protocols/nefarious: fix wrong variable in “/join 0” handling causing crashes
- The PyLink bot now rejoins relay channels when it is killed
- protocols/ts6: fix wrong args in TB handling
Internal improvements
coreplugin.py
is split intocoremods/
, with many different submodules for easier maintenance.- Rewritten channel TS handling to be more concise and reusable
- protocols/unreal: warn about mode bounces instead of fighting with the uplink
- protocols/ts6, protocols/nefarious: use protocol-specific ban bursting instead of sending a regular MODE
Irc.parseModes()
now handles strings given as the mode list properly, instead of only accepting a list of modestring argumentsSQUIT
handlers now return anuplink
field with the SID of the server that the target was split from- protocols/ts6: send 12 users (SJOIN) and 10 modes (TMODE) per line, instead of 10 and 9 respectively
- Relay is now slightly more careful when normalizing nicks: they can’t have invalid characters, start with a hyphen (-), etc.
- Modes are now sorted when joined. You’ll now see things like
+Hiow
instead of+wHoi
- protocols/inspircd: services clients with mode +k now have the “Network Service” oper type, in WHOIS replies and elsewhere
- SQUIT and KILL handling are moved into a protocols/ircs2s.py module, as the handling is basically the same on both TS6 and P10.
- protocols/nefarious,ts6,unreal: KILL handling (inbound & outbound) now supports kill paths and formats kill reasons properly
- protocols: encapsulated (ENCAP) commands are now implicitly
expanded, so protocol modules no longer need to bother with IF statement
chains in a
handle_encap()
PyLink 0.8-alpha4
Tagged as 0.8-alpha4 by GLolol on 2016-06-30T18:56:42Z
Major changes in this snapshot release:
- SECURITY: Forbid SSLv2 and SSLv3 in SSL socket
creation (
0fbf9e1
) - Configurable nicks for services (per-net and global, #220, #229)
- Resolve server hostnames when connecting (#158).
- protocols/ts6: fix incorrect WHOIS syntax causing connection abort
(
6060a88
) - protocols/nefarious: fix bad
/join 0
handling causing connection abort (b1e138d
) - relay: forbid linking two channels on the same network
(
e47738c
) - protocols: various fixes for mode definitions, including missing
+i
handling on ts6 and unreal (26df48c
,3e19e9c
) - Consistent defaults to ping frequency and timeout (now 90 and 180 seconds respectively)
- Example conf: fix various typos (
0edb516
,cd4bf55
) and be more clear about link blocks only being examples - Various freezes and crash bugs fixed (
dd08c01
,1ad8b2e
,504a9be
,5f2da1c
)
Full diff: https://github.com/GLolol/PyLink/compare/0.8-alpha3…0.8-alpha4
PyLink 0.8-alpha3
Tagged as 0.8-alpha3 by GLolol on 2016-06-01T02:58:49Z
- relay: support relaying a few more channel modes (flood, joinflood, freetarget, noforwards, and noinvite)
- Introduce a new (WIP) API to create simple service bots (#216).
- The main PyLink client now spawns itself with hideoper whenever
available, to avoid filling up
/lusers
and/stats P/p
. (#194) - The
fantasy
plugin now supports per-bot prefixes; see example conf for details. - Purge c_ and u_ prefixes from PyLink’s internal named modes definitions (#217).
- Various documentation updates.
- New
games
plugin, currently implementing eightball, dice, and fml. - Various fixes to the Nefarious protocol module (89ed92b46a4376abf69698b76955fec010a230b4…c82cc9d822ad46f441de3f2f820d5203b6e70516, #209, #210).
PyLink 0.8-alpha2
Tagged as 0.8-alpha2 by GLolol on 2016-05-08T04:40:17Z
- protocols/nefarious: fix incorrect decoding of IPv6 addresses
(
0e0d96e
) - protocols/(hybrid|nefarious): add missing BURST/SJOIN->JOIN hook mappings, fixing problems with relay missing users after a netjoin
- protocols/unreal: fix JOIN handling storing channels with the wrong
case (
b78b911323
) - protocols/inspircd: fix wrong username being sent when formatting KILL text
- commands: Fix
loglevel
command being ineffective (#208) - relay: Fix various race conditions, especially when multiple networks happen to lose connection simultaneously
- API changes: many commands from
utils
were split into eitherIrc()
or a newstructures
module (#199)
PyLink 0.8-alpha1
Tagged as 0.8-alpha1 by GLolol on 2016-04-23T03:14:21Z
- New protocol support: IRCd-Hybrid 8.x and Nefarious IRCu
- Track user IPs of UnrealIRCd 3.2 users (#196)
- SIGHUP now rehashes PyLink on supported platforms (#179)
- Improved mode support for Charybdis (#203)
- Fix disconnect logic during ping timeouts
PyLink 0.7.2-dev
Tagged as 0.7.2-dev by GLolol on 2016-04-19T14:03:50Z
Bug fix release: - Support mixed Unreal 3.2/4.0 networks (#193) -
More complete APIs for checking channel access (#168) - New
servprotect
plugin for KILL/SAVE flood
protection. This was split out of relay due to expiringdict not being
installable via pip. - Documentation update (protocol module variables,
mention new WHOIS, VERSION hooks) - Minor fixes for Windows support.
(#183) - SIGTERM should now shut down the daemon cleanly. (#179)
8ee64d5ec1
readme: mention why
expiringdict is broken in pip3 528dfdba2a
pmodule-spec: mention cmodes, umodes, prefixmodes variables
cb3187c5e9
ts6_common: do reverse nick
lookup for KICK targets 55afa1bff6
unreal:
log instances of PUID manging to debug
75984c3c4c
ts6_common: add abstraction to
convert UIDs->outgoing nicks 9f20f8f767
unreal: update SJOIN matching regex
4157cb5671
ts6_common: use a better
variable name for _getSid() e687bb0a78
unreal: remove outfilter hack, this doesn’t handle text including PUIDs
properly 0136ff2c3a
example conf: mention
using spaces to indent 86781d37ba
README:
fix typo 9fde35fd77
relay: handle server
name conflicts more correctly c01b449741
relay: treat network names case-sensitively
02ec50826b
unreal: fix super() syntax in
SQUIT handling 16779aa5ce
classes: remove
lower() call when storing netname
6acfbb4125
unreal: case-desensitize legacy
server names when handling user introductions from them
62da384cae
README: unreal 3.2 mixed
networks are supported now, sorta
5d0f450c73
Merge branches ‘master’ and
‘devel’ into devel+unreal32 956167538a
unreal: add warnings & more descriptive errors regarding mixed_link
f3ceefe87f
unreal: initialize legacy users
on the right server efd13d20ee
example-conf: add sample unreal block, documenting mixed_link
44b102ffce
networks: allow all opers to
run ‘autoconnect’ 13e97177e2
docs: Add a
PyLink oper guide c4273e68a4
unreal: fix
for Python 3.4 support 4f08894227
unreal:
typofix 10be962318
unreal: actually return
the hook data for NICK & KILL
44dc856ffa
unreal: use an awful outFilter
hack to convert PUIDs->nicks when sending outgoing commands
74ee1ded4d
unreal: Start work on some
really hacky Unreal 3.2 compat code (#193)
3e7255e4b2
classes: remove ts6-specific
hack in Protocol.removeClient 514072804c
README: mention the implications of #193
fd32bbf45f
unreal: fix typo in last commit
efcc30c983
unreal: don’t confuse legacy
SERVER introductions from our uplink with protocol negotiation
fab404f8d6
Merge branches ‘master’ and
‘wip/relay-fixes’ into devel 3a8b0aa123
relay: catch OSError too when loading DB
1bcadbe12b
Use more flexible shebangs
(/usr/bin/env python3) 9e33081bc9
relay:
fix typo in comment d21344342d
relay:
experimental fix for #183 8b7a9f6b45
Merge
pull request #189 from DanielOaks/devel+ignore-env
d287a22aec
gitignore: Ignore env folder
for virtualenvs 58519011b8
coreplugin:
modularize shutdown routines, handle SIGTERM->shutdown
b100f30cfe
fantasy: break if IRC object
isn’t ready cf363432f0
pylink: use
abspath() to get the source directory
662d1ce03f
inspircd: warn that inspircd
2.2 support is experimental 4a0ee6f54c
relay: be more thread-safe via dict.copy()
305db9f754
utils: also don’t crash in
applyModes for bad mode targets e70dfb0811
Merge branch ‘master’ into devel
08c3b99dfb
relay: fix ambiguous logging in
KICK blocking 4125ff33b1
pylink: prettier
“Loaded plugins” log message on start
d5d3c2422b
inspircd: define minimum &
target protocol versions instead of hardcoding them
70b9bde2c4
unreal: fix a little typo
ad517f80da
unreal: bump protocol version
to 4000 19ac5b59a5
protocols: drop
underscores from pre-defined opertypes
c71d2bfcb9
coreplugin: sync opertype
changes in handle_operup 9278e56dd8
coreplugin: normalize WHOIS output format
44083ccd5e
core: Store opertype info in
all IrcUser objects bdbc1020f2
Merge
branch ‘master’ into devel fbd8659a7d
classes: spawn PyLink clients with a custom opertype
a91fa46549
Regenerate pydoc documentation
c8a3514776
hooks-reference: add VERSION
and WHOIS f618b96b34
inspircd: add VERSION
handling 00552a41a7
Move detailed version
string generation to utils 23056e97e3
protocols & coreplugin: add handlers for VERSION requests
45c2abdae7
Irc: run initVars() on connect
too aedb05608e
relay: actually, just kill
handle_spawnmain b2b04c8e75
classes:
really ignore errors when shutting down sockets
ce3d3cf697
relay: check to make sure
network is ready before handling spawnmain
0bb54d88e0
New servprotect plugin
(anti-KILL/SAVE flood) 9fe3373906
relay:
get rid of kill/save protection 75ec95b8d3
Merge branch ‘master’ into devel
03b53aee59
Merge branch ‘staging’ into
devel e183078645
protocols: Remove
“secret” testing channel name 6962f3b73e
ts6: unset has_eob correctly on reconnects
c176c90bb6
coreplugin: use
IrcChannel.getPrefixModes in whois replies
f5f0df52ce
classes: raise KeyError, not
return KeyError… c86a02e044
relay: use
IrcChannel.getPrefixModes e948db5c7b
classes: support looking at older versions of prefix modes mappings
d84cfbcda1
utils: simplify prefix modes
handling in applyModes e8b0018585
classes:
Implement IrcChannel.is(Voice|Halfop|Op)Plus (#168)
ed333a6d1b
classes: implement
IrcChannel.isOp, isVoice, getPrefixmodes, etc
8135f3a735
core: Depluralize prefixmodes
mappings (#168) 1d4350c4fd
classes:
provide IrcChannel objects with their own name using KeyedDefaultdict
544d6e1041
utils: add KeyedDefaultdict
PyLink 0.7.1-dev
Tagged as 0.7.1-dev by GLolol on 2016-03-31T01:42:41Z
Bugfix release. Lingering errata which you may still encounter: #183.
0fd093644c
utils: don’t crash when mode
target is invalid 1930739aad
Revert “Irc:
don’t call initVars() on IRC object initialization”
2b16f25b61
classes.Irc: clear state on
disconnect, not on connect a4395ed989
log:
respect child loggers’ levels if they are lower than the main one’s
46922ce879
relay: remove dead networks’
servers from the servers index unconditionally
f2a21148e7
Irc: run initVars() on connect
too 9cd1635f68
unreal: fix wrong variable
name in handle_umode2 2169a9be28
utils:
actually abort when mode target is invalid
PyLink 0.7.0-dev
Tagged as 0.7.0-dev by GLolol on 2016-03-21T19:09:12Z
Changes from 0.6.1-dev:
d12e70d5e5
ts6: unset has_eob correctly
on reconnects 5b2c9c593b
Add .mailmap
abce18a5ba
log: split multi-line channel
logs into multiple PRIVMSGs a8303d0110
commands: sort channel list in ‘showuser’ output
0dd8b80a21
docs/t: use rawgit links to
serve HTML 506ae011a4
Update autogenerated
docs (adding a script to do this now)
d8e5202e5b
world: use a better module
description 2adb67d38e
runtests: remove
.py extension, only run tests when ran as a script
da7bd649d2
conf: fix testconf missing the
logging: section 557efc369f
docs/t: mark
hooks-reference as finished in README
9d0fcb5395
docs: finish off
hooks-reference (#113) 15b35f1853
ts6:
support charybdis +T mode (closes #173)
359bfcd9da
bots: map ‘msg’ command to
‘say’ too b6889fb097
irc: fix spacing in
certificate fingerprint logging 7f5bc52152
relay: fix errors in KILL handling when target isn’t in any relay
channels 3527960d18
coreplugin: tell
plugins to exit cleanly before closing connections
9b0db81068
changehost: modularize, add a
command to apply cloaks now, match IPs too
14388d932f
utils.getHostmask: add option
to return IP address 5fed4629a6
networks:
remove networks with autoconnect off in ‘disconnect’
8ac5436152
relay: allow admins to destroy
channels hosted on other networks
4df027cac4
coreplugin: ignore services’
attempts to send accountname before user introduction
1ce2725f1e
bots: update help for ‘msg’
command (reflect changes made for #161)
54dc51aed4
bots: make source client names
optional (Closes #161) 34ca973047
relay:
cleanup, consistently include the function in log.debug calls
a740163cbe
relay: implement DB exporting
using threading.Timer, similar to classes.Irc.schedulePing
d531201850
Merge branch ‘master’ into
devel ae8f369f2e
relay: only show networks
that are actually connected in LINKED
de1a9a7995
relay: various cleanup
eec8e0dca4
log: attempt to remedy #164
(more testing needed) 40d76c8bb6
coreplugin: demote successful oper-up messages to debug
df23b79780
commands: reformat ‘showuser’
output, and show services login info (#25)
decdf141fd
unreal: don’t use updateClient
to update hostname of clients internally
2ebdb4bad6
unreal: support services
account tracking (#25), fix handle_SVSMODE applying modes on the wrong
target cabdb11f86
inspircd: implement
services account tracking (#25) 0fff91edfd
ts6: implement services account tracking (#25)
cf15bed58d
classes: add services_account
field in IrcUser (#25), default ‘identified’ attribute to empty string
instead of None 584f952113
conf: check to
make sure logging block exists in config
5877031203
Merge branch ‘master’ into
devel 21167e8fb3
example conf: use 1 “#”
without trailing space for commented-out options
0d4655c381
core: support multiple channel
loggers with DIFFERENT log levels & fix example conf (#83)
669e889e6f
Support configurable SSL
fingerprint hash types (Closes #157)
08fd50d3d8
Logging improvements, including
support for custom file targets (#83)
de84a5b437
log: default level should be
INFO, not DEBUG cf1de08457
commands:
support rehashing channel loggers
2503bd3ee5
commands: In rehash, use
irc.disconnect() to disconnect networks removed from conf
14efb27fe8
Initial experimental support
for logging to channels (#83) 4b939ea641
ts6: rewrite end-of-burst code (EOB is literally just a PING in ts6)
5a68dc1bc5
Irc: don’t call initVars() on
IRC object initialization
PyLink 0.6.1-dev
Tagged as 0.6.1-dev by GLolol on 2016-03-02T05:15:22Z
- Bug fix release.
PyLink 0.6.0-dev
Tagged as 0.6.0-dev by GLolol on 2016-01-23T18:24:10Z
Notable changes in this release:
- New “opercmds” plugin:
- This merges some functionality from the bots plugin, but also adds
new commands such as
jupe
,kill
,topic
, andcheckban
.
- This merges some functionality from the bots plugin, but also adds
new commands such as
- New “changehost” plugin - Automated configurable vHost setting on connect.
- Some core changes will break protocol modules and
plugins written for older PyLink versions:
- Some functions have been renamed:
utils.nickToUid(irc, nick)
->irc.nickToUid(nick)
utils.isInternalClient(irc, uid)
->irc.isInternalClient(uid)
utils.isInternalServer(irc, uid)
->irc.isInternalServer(uid)
utils.clientToServer(irc, uid)
->utils.getServer(uid)
utils.getProtoModule(...)
->utils.getProtocolModule(...)
- Protocol specification is rewritten, with “Client” and “Server” dropped from the suffix of most outgoing commands: see acdd7dbb782765f581…2fd0a8ae741a663d.
- Some functions have been renamed:
- exec plugin: add
inject
andraw
commands (4e7396b
). - exec plugin: support newline (and other) escapes in
exec
(375dbe8
). - protocols: allow changing remote users’ hosts in updateClient
(
741fed9
). - Speed up and clean up shutdown sequence, fixing hangs due to sockets not shutting down cleanly (#152).
- protocols/unreal: Support cloaking with user mode
+x
(#136). - Various bug fixes - see https://github.com/GLolol/PyLink/compare/0.5-dev…0.6.0-dev for a full diff.
PyLink 0.5-dev
Tagged as 0.5-dev by GLolol on 2015-12-06T17:54:02Z
The “We’re getting somewhere…” release.
Changes
- Bug fixes, all the bug fixes.
Core
- Support IPv6 connections in config.
- The offending hook data is now logged whenever a hook function errors, for more convenient debugging.
- Add sanity checks for autoconnect - delay has to be at least 1 second now, to prevent connect floods that go on without any delay in between!
- Add
irc.reply()
to send command replies to callers in the right context (channel or PM). - More base commands are in
coreplugin
instead ofcommands.py
now, making the latter reloadable without restart. - Don’t crash when REHASH loads a config file that’s invalid.
- utils: Replace imp (deprecated) with importlib.
Plugins
- commands: Add a command to set log level (#124).
- commands: Update
irc.botdata
(bot:
data in config) in REHASH. - fantasy: Support nick prefixes (e.g.
PyLink: help
), along with a configurable prefix.
Protocols
- protocols/TS6: Fix SQUIT handling and introduction of SID-less
servers (i.e. atheme’s
/os JUPE
) (#119) - protocols/unreal: Add (experimental) support for UnrealIRCd 4.0.x!
- plugins: More complete INFO logging: plugin loading/unloading, unknown commands called, successful operups
Full diff:https://github.com/GLolol/PyLink/compare/0.4.6-dev…0.5-dev
PyLink 0.4.6-dev
Tagged as 0.4.6-dev by GLolol on 2015-10-01T23:44:20Z
Bugfix release:
f20e677577
relay: fix PMs across the
relay (7d919e6
regression) 55d9eb240f
classes.Irc: prettier repr
PyLink 0.4.5-dev
Tagged as 0.4.5-dev by GLolol on 2015-09-30T04:14:22Z
The “fancy stuff!” release.
New features including in-place config reloading (rehashing) (#89), FANTASY support (#111), and plugin (re/un)loading without a restart.
Full diff since 0.4.0-dev:
https://github.com/GLolol/PyLink/compare/0.4.0-dev…0.4.5-dev
48831863d2
validateConf: allow autojoin
channels to be empty; nothing wrong with that
54414f307e
commands: new REHASH command
(Closes #89) e84a2d1025
Modularize our
import hacks, make Irc() take a conf object again
9e07949730
relay: make spawning of
subservers toggleable 55b642ea30
Revert
“relay: remove ENDBURST hook (is this needed anymore?)”
630aa83084
core: add some rudimentary
config file validation 0d3a7a5ce0
exec:
import world, for easier access to it
5aeaac0394
commands: only allow loading
plugins that aren’t already loaded
38a350a5f8
Revert “pylink: use sys.path
instead of imp library hacks” 4a9a29e095
relay: remove ENDBURST hook (is this needed anymore?)
a14e8a7b8f
relay: add (experimental)
support for plugin reloading 07fe7202aa
commands: add plugin loading/unloading/reloading support
bbedd38703
world: rename
command_hooks=>hooks, bot_commands=>commands
cc171eb79a
relay: abort connection when
spawning a server fails cf2ba4b492
pylink:
use sys.path instead of imp library hacks
a903f97507
Make world.plugins a dict
instead of a list a37d4b6f3c
fantasy: only
work when the main PyLink client is in the channel
7470efc461
commands: add an echo command
7d919e643a
relay: forward messages from
the main PyLink client too 97a135a6f1
classes: add special PYLINK_SELF(PRIVMSG/NOTICE) hooks for command
loopback 034731ab1e
core: log which plugin
is being called when calling hooks
0378fcca1d
fantasy: don’t allow internal
clients to trigger 8e444c5dbe
plugins:
support FANTASY (where reasonable) by using irc.msg(irc.called_by, …)
instead of irc.msg(source, …) f55d227329
example conf: add fantasy.py to list and plugin descriptions
4509e0757d
FANTASY support plugin (Closes
#111) 822544e3cc
core: keep track of where
last command was called & make command calling a shared function
5afa621654
utils.parseModes: add missing
string formatting da3251cce2
utils.parseModes: check to make sure target channel/user exists
aaeeedadf2
start-cpulimit: pass command
line options to ./pylink f884d71cf0
docs/pmodule-spec.md: formatting again
86495db770
docs/pmodule-spec: formatting
f015fe5e25
Documentation updates, finish
off pmodule-spec.md (#113) 3351aafc79
inspircd: fix wrong arguments in numericServer() stub
c77d170765
Move parseArgs and removeClient
into the base Protocol class
PyLink 0.3.50-dev
Tagged as 0.3.50-dev by GLolol on 2015-09-19T18:28:24Z
Many updates to core, preparing for an (eventual) 0.4.x release. Commits:
63189e9
relay: look at the right prefix mode list when rejoining from
KILL cb83db4
relay: don’t allow creating a channel that’s already part
of a relay 8faf86a
relay: rejoin killed users to the RIGHT channels
2e0a5e5
utils.parseModes: fix IndexError on empty query 1f95774
inspircd: add proper fallback value for OPERTYPE? d6cb9d4
Merge commit
‘320de2079a78202e99c7b6aeb53c28c13f43ba47’ 320de20
relay: add INVITE
support (Closes #94) 60dc3fe
relay: use “Channel delinked.” part message
when delinking channels 9a47ff8
Merge branch ‘master’ into devel ace0ddf
relay: use JOIN instead of SJOIN for non-burst joins c2ee9ef
Merge
branch ‘master’ into devel 19fa31d
relay: fix incorrect logging in
getSupportedUmodes() 2f760c8
relay: Don’t send empty user mode changes
4f40fae
relay: in logs, be a bit more specific why we’re blocking KILLs
and KICKs 0b590d6
relay/protocols: use utils.toLower() for channel
names, respecting IRCd casemappings 4525b81
relay.handle_kill: prevent
yet another RuntimeError 26e102f
Show oper types on WHOIS 8d19057
relay:
set umode +H (hideoper) on all remote opered clients 5480ae1
classes:
Remove “opertype” IrcUser() argument 531ebbb
Merge branch ‘master’ into
devel f9b4457
Decorate relay clients, etc. with custom OPERTYPEs 4a964b1
Merge branch ‘master’ into devel 1062e47
classes.IrcChannel: default
modes to +nt on join d270a18
Remove unused imports 94f83eb
relay.showuser: show home network/nick, and relay nicks regardless of
oper status 5503477
commands: distinguish commands with multiple binds
in ‘list’ 8976322
Replace admin.showuser with prettier whois-style cmds
in ‘commands’ and ‘relay’ e1e31f6
Allow multiple plugins to bind to one
command name! afd6d8c
Refactor conf loading; skip the file-loading parts
entirely for tests (#56) cda54c7
main: Fix b71e508
. a58bee7
Modularize
tests using common classes, add our custom test runner (#56) 549a1d1
classes: IrcServer.users is now a set() adb9ef1
classes: fixes for the
test API 973aba6
Move utils’ global variables to world.py b71e508
classes.Irc no longer needs a conf argument; tweak tests again ad5fc97
Many fixes to test API, utils.reverseModes stub ab4cb4d
Merge branch
‘master’ into devel 2fe9b62
Consistently capitalize errors and other
messages bc7765b
Let’s use consistent “Unknown command” errors, right?
d059bd4
Move ‘exec’ command into its separate plugin 3d621b0
Move
checkAuthenticated() to utils, and give it and isOper() toggles for
allowing oper/PyLink logins 090fa85
Move Irc() from main.py to
classes.py
PyLink 0.3.1-dev
Tagged as 0.3.1-dev by GLolol on 2015-09-03T06:56:48Z
Bugfix release + LINKACL support for relay. Commits since 0.3.0-dev:
043fccf447
Fix previous commit (Closes
#100) 708d949164
relay: join remote users
before sending ours 8d44830d5c
relay.handle_kill: prevent yet another RuntimeError
6d6606900e
relay: coerse “/” to “|” in
nicks if “/” isn’t present in the separator
c8e7b72065
protocols: lowercase channel
names in PRIVMSG handling 37eecd7d69
pr/inspircd: use OPERTYPE to oper up clients correctly, and handle the
metadata accordingly 9f0f4cb124
relay:
burst the right set of modes 7620cd7433
pr/inspircd: fix compatibility with channel mode +q (~)
3523f8f766
LINKACL support
51389b96e2
relay: LINKACL command (Closes
#88)
PyLink 0.2.5-dev
Tagged as 0.2.5-dev by GLolol on 2015-08-16T05:39:34Z
See the diff for this development build: https://github.com/GLolol/PyLink/compare/0.2.3-dev…0.2.5-dev
PyLink 0.2.3-dev
Tagged as 0.2.3-dev by GLolol on 2015-07-26T06:11:20Z
The “prevent PyLink from wrecking my server’s CPU” release.
Mostly bug fixes here, with a couple of scripts added
(start-cpulimit.sh
and kill.sh
) added to
assist running PyLink under the protection of CPUlimit. :)
New features
- relay: Block most duplicate modes from being relayed (#71)
- main: write a PID file to
pylink.pid
(f85fbd934b
) - ts6: support
+AOS
charybdis extension modes, warning if the IRCd doesn’t support them (146ab5e
)
Fixes
- relay: quit users who aren’t on any shared channels after KICK
(
71a3464
) - Use RFC1459 for case mapping on InspIRCd (
01220b3
) - relay: Fix handling of local
SAVE
(e4da670
) andKILL
(a4da9b5
) commands - relay: fix nick collision loop on
SAVE
+ when both tagged (i.e. _42XAAAAAA) and untagged (42XAAAAAA) versions of a UID nick exist (e354ada
) - relay: Fix command arguments of
DELINK
on home networks (c07cfb1
) - relay:
SJOIN
users once, and only once (#71,b681a67
) - main.Irc: catch
OSError
(bad file descriptor) errors and disconnect - ts6: add QS as a required capability (
69e16e5
) - ts6: fix
JOIN
handling andparse_as
key handling in hooks (ddefd38
) - relay: only wait for
irc.connected
once per network (4d7d7ce
)
Full diff: https://github.com/GLolol/PyLink/compare/0.2.2-dev…0.2.3-dev
PyLink 0.2.2-dev
Tagged as 0.2.2-dev by GLolol on 2015-07-24T18:09:44Z
The “please don’t break again :(” release.
- Added
WHOIS
handling support for TS6 IRCds. - ts6: fix handling of
SID
,CHGHOST
, andSQUIT
commands. - Support noctcp (mode
+C
) on charybdis, and wallops (+w
) in relay. - Raised fallback ping frequency to 30
…And of course, lots and lots of bug fixes; I won’t bother to list them all.
Full diff: https://github.com/GLolol/PyLink/compare/0.2.0-dev…0.2.2-dev
PyLink 0.2.0-dev
Tagged as 0.2.0-dev by GLolol on 2015-07-23T04:44:17Z
Many changes in this development release, including:
- New
ts6
protocol module, for charybdis 3.x. - relay: add nick collision handling via
SAVE
(#61). - relay: trivial tasks like
TOPIC
,MODE
,KICK
andPART
no longer spawn new clients for their senders, and are routed through the pseudoserver when applicable instead (e76d31d
c0f8259
). - Irc: be safer against
UnicodeDecodeError
caused bysocket.recv()
cutoff, by decoding each individual line instead (06d17d5
). - relay: make the
nick/net
separator a per-network config option. (ad34f6c
). - relay: Use a whitelist when it comes to relaying modes (#54), and
strip out bans that don’t match
nick!user@host
syntax (#55). - relay: Handle user mode changes (#64).
- Support different case mappings for nicknames (RFC1459 vs ASCII) (#75).
- inspircd: remove
RSQUIT
command handler (3494d4f
).
And of course, many, many bug fixes! (relay should now work properly with more than 2 networks, for example…)
Full diff: https://github.com/GLolol/PyLink/compare/0.1.6-dev…0.2.0-dev
PyLink 0.1.6-dev
Tagged as 0.1.6-dev by GLolol on 2015-07-20T06:09:40Z
Bug fixes and improvements from 0.1.5-dev
- Irc.send: catch
AttributeError
whenself.socket
doesn’t exist; i.e. when initial connection fails (b627513
) - Log output to
log/pylink.log
, along with console (#52,61804b1
fbc2fbf
) - main/coreplugin: use
log.exception()
instead oftraceback.print_exc()
, so logs aren’t only printed to screen (536366d
) - relay: don’t relay messages sent to the PyLink client (
688675d
) - relay: add a
save
command, and make rescheduling optional inexportDB()
(c00da49
) - utils: add
getHostmask()
(1b09a00
) - various: Log command usage,
exec
usage, successful logins, and access denied errors inadmin.py
’s commands (57e9bf6
)
Full diff: https://github.com/GLolol/PyLink/compare/0.1.5-dev…0.1.6-dev
PyLink 0.1.5-dev
Tagged as 0.1.5-dev by GLolol on 2015-07-18T20:01:39Z
New features
- Hooks for
CHGHOST
,CHGIDENT
, andCHGNAME
(f9d8215
35f1c88
) - IrcUser: Implement user channel tracking via an
IrcUser.channels
attribute (d97fce8
) - Send PING to our uplink periodically, and quit if we don’t get a
response (#42, #57)
- New server
pingfreq
option is introduced to set the time between PINGs.
- New server
- relay: Only spawn clients if they share a channel, and quit them
when they leave all shared channels (
cf32461
) - Support autoreconnecting to networks! A new
autoconnect
server setting is added to set autoconnect delay. - New
PYLINK_DISCONNECT
hook to keep track of network disconnections (3f6f78b
) - relay: add a
LINKED
command (#65,bbcd70b
) - commands: add a
HELP
command (#8,6508cb3
4553eda
)
Bug fixes
- relay: don’t spawn tagged clones for the internal PyLink client
(
40fd9e3
) - relay: don’t send empty
MODE
commands if there are no supported modes left after filtering (2a586a6
) - protocol/inspircd: don’t raise KeyError when removing channel from
user fails (
73c625a
) - relay: only join PyLink to channels & set topics if there’s
actually a relay on the network (
49943a7
) - relay: fix the wrong modes being propagated to the wrong channels on
LINK
(#53,ccf7596
) - relay: fix “RuntimeError: dictionary changed size during iteration”
in
handle_part
(d30890c
) - relay: Only allow messaging users in common channels / channels that
you’re in (#62,
024ac16
)
Misc. changes
- Move client/server spawning, hook calling, command handling, and
KILL/KICK detection outside the protocol module (
0aa2f98
fdea348
) - Fix fakeirc and tests for relay (#56,
a51cfcb
)
Removed features
- commands: remove
debug
command; it’s useless now thatexec
,showchan
, andshowuser
exist (50665ec
) - admin:
tell
command has been removed. Rationale: limited usefulness; doesn’t wrap long messages properly. (4553eda
)
You can view the full diff here: https://github.com/GLolol/PyLink/compare/0.1.0-dev…0.1.5-dev
PyLink 0.1.0-dev
Tagged as 0.1.0-dev by GLolol on 2015-07-16T06:27:12Z
PyLink’s first pre-alpha development snapshot.
Working protocol modules: - InspIRCd 2.0.x -
inspircd
Working plugins: - admin
- hooks
-
commands
- relay