3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00
Commit Graph

212 Commits

Author SHA1 Message Date
James Lu
ce0c84266e fantasy: make responding to nick a per-service configuration option (#343)
This also renames the "respondtonick" option to "respond_to_nick", deprecating the former name.
2017-03-26 14:03:31 -07:00
James Lu
1994d1171c p10: add support for ircu proper 2017-03-25 13:47:16 -07:00
James Lu
235b296a69 Rename protocols/nefarious.py to protocols/p10.py 2017-03-25 13:47:15 -07:00
James Lu
205053aebe example-conf: account-based cloaking is not nefarious specific 2017-03-25 13:47:15 -07:00
James Lu
bb63d859c9 example-conf: refresh P10 config arguments
The new p10_ircd option shown here isn't implemented yet.
2017-03-25 13:47:15 -07:00
James Lu
3ffbbe60ff global: configurable output format 2017-03-13 13:39:30 -07:00
James Lu
2028cab04c core: Grow autoconnect delays by a configurable factor whenever connections fail
Closes #348.
2017-03-11 00:21:30 -08:00
James Lu
bf42109d81 Split fantasy prefix definitions into service-specific blocks
Closes #426.

This makes the pylink::prefix (aka bot::prefix) option only affect the main PyLink bot, and deprecates the pylink::prefixes::<...> options.
As the bot: config block is no longer checked, this commit depends on commit 45ed5b962e215763f7659631d1b98a5031dbab92 (ref #343) to alias it to conf::pylink.
2017-03-10 23:47:07 -08:00
James Lu
dc298b3182 conf: join conf::bot and conf::pylink so that they mean the same thing (#343) 2017-03-10 23:47:07 -08:00
James Lu
f6d9765f87 core: implement module loading from user-defined directories
Closes #350.
2017-03-08 22:31:57 -08:00
James Lu
7a1a4d9161 example-conf: document service-specific autojoin channels (from #423) 2017-02-26 18:16:15 -08:00
James Lu
cd3d795296 relay: implement optional network disconnect announcements
Closes #421.
2017-02-24 21:15:40 -08:00
James Lu
c03f2d772c relay: allow dropping messages from user-less clients
This adds two new options, both defaulting to True:
- relay:accept_weird_senders (global)
- servers:<name>:relay_weird_senders (per-server)

Closes #404.
2017-02-24 19:16:01 -08:00
James Lu
50ff330734 Merge branch 'master' into devel 2017-02-24 18:31:45 -08:00
James Lu
84d62fc540 example-conf: update comment to match the last commit 2017-02-21 21:06:55 -08:00
Ken Spencer
b92ee03525 servprotect: match key (example-conf.yml) to grabbed key (servprotect.py) (#418) 2017-02-21 18:14:48 -08:00
James Lu
2e92f65782 example-conf: mention that servprotect::max_age needs a plugin reload to update 2017-02-21 17:07:32 -08:00
James Lu
0706b6cf78 Style/spacing fixes for last commit 2017-02-21 17:04:59 -08:00
Ken Spencer
a8fe353ba4 servprotect: make length and age configurable (#417)
Fixes #395
2017-02-21 17:02:26 -08:00
James Lu
4577bde05c example-conf: make the "permissions:" block migration note more prominent 2017-02-19 21:40:00 -08:00
James Lu
75b5be5baf ServiceBot: implement global and per-service spawn_service(s) options (#403) 2017-02-18 12:54:26 -08:00
James Lu
a0ed43bf64 example-conf: describe how some options are common to all service bots 2017-02-18 12:42:36 -08:00
James Lu
050721af5b example-conf: describe more clearly the pylink_nick/ident options in the clientbot block 2017-02-18 12:09:00 -08:00
James Lu
2f968aca80 Irc: allow defaulting to private command replies (Closes #409)
Squashed commit of the following:

commit c168500235b65f833b1d7fe49ebde674159683ee
Author: James Lu <GLolol@overdrivenetworks.com>
Date:   Thu Feb 16 17:33:36 2017 -0800

    ServiceBot: default notice and private to None

    This is so that it respects the changes from the last commit.

commit f685f3ef522f7f0ee356082c3c1b8b5a4e34b211
Author: James Lu <GLolol@overdrivenetworks.com>
Date:   Thu Feb 16 15:10:33 2017 -0800

    Irc: implement a prefer_private_replies option (#409)
2017-02-16 17:41:07 -08:00
James Lu
de99be720e stats: prettier formatting for the uptime command
Closes #381.
2017-01-30 00:06:42 -08:00
James Lu
74755db6e1 example-conf: log settings no longer need a restart to update 2017-01-08 17:34:29 -08:00
James Lu
94779326bc example-conf: mention what changehost is NOT meant to do 2017-01-03 07:30:35 -08:00
James Lu
31ddc37db4 example-conf: be more clear that network names (e.g. "inspnet:") should be changed 2017-01-02 12:30:38 -08:00
James Lu
a3ff32c22e core: implement bind host support
Closes #379.
2017-01-02 12:30:24 -08:00
James Lu
3e6550b8ad example-conf: mention Clientbot mode sync's behaviour with CLAIM
Closes #344.
2016-12-22 00:38:39 -08:00
James Lu
a96bb0ce11 clientbot: make unattended SASL reauth optional 2016-12-19 01:06:49 -08:00
James Lu
de3d9bb5c9 example-conf: add a SASL login example 2016-12-17 16:18:11 -08:00
James Lu
1fd7aba3b0 example-conf: add migration notes for login:user/password deprecation 2016-12-16 18:40:27 -08:00
James Lu
1e7210a6db Refresh permissions examples, adding a stub in the main example conf for admin access 2016-12-09 20:57:49 -08:00
James Lu
a57f194123 changehost: add options to match users by IP and realhost 2016-11-20 12:34:11 -08:00
James Lu
476f84a181 changehost: implement enforce exceptions 2016-11-20 12:33:58 -08:00
James Lu
501647805c changehost: add optional vHost enforcement 2016-11-20 11:53:55 -08:00
James Lu
ffc271a53a login: Use a slightly faster CryptContext 2016-11-19 17:47:55 -08:00
James Lu
c4351d61c6 Add command line mkpasswd utility & encrypted password example 2016-11-19 17:21:45 -08:00
James Lu
93ca62aa49 Revamp configuration to support multiple accounts (#319) 2016-11-07 21:01:28 -08:00
James Lu
34fd45dce9 Merge remote-tracking branch 'origin/master' into devel 2016-11-05 21:27:50 -07:00
James Lu
d2f95acd2e Proofread and edit the example-conf 2016-11-04 18:13:15 -07:00
James Lu
2ed8b68c44 relay: allow configuring custom relay server suffixes
Closes #333.

(cherry picked from commit 3900833458)
2016-10-20 19:10:47 -07:00
James Lu
7917502799 clientbot: make oper status tracking a network-specific option 2016-10-09 19:04:59 -07:00
James Lu
e2e5de009b Merge branch 'master' into devel
Bump version to 1.1-dev
2016-10-05 20:31:16 -07:00
James Lu
8bffffa000 example-conf: comment out filerotation: so it doesn't become an empty, null-valued block 2016-10-05 20:30:32 -07:00
James Lu
57b566286d relay: make clientbot modesync more configurable (#287) 2016-09-25 20:07:16 -07:00
James Lu
68c247f764 New servermaps plugin: displays network /map's from the PyLink server's perspective 2016-09-24 11:19:33 -07:00
James Lu
0cce6ca488 service_support: allow specifying modes to join with for each service (#326)
This updates the example config to, by default, join Automode bots as op in channels.
2016-09-23 23:10:38 -07:00
James Lu
3900833458 relay: allow configuring custom relay server suffixes
Closes #333.
2016-09-23 22:49:04 -07:00
James Lu
c690916da9 example-conf: fix inverted config desc. for relay:show_netsplits 2016-09-16 21:07:32 -07:00
James Lu
da24b85ccd example-conf: more consistent default nick for Automode 2016-09-12 20:16:52 -07:00
James Lu
d8990e8439 example-conf: add debug log example 2016-09-08 18:02:55 -07:00
James Lu
1ffb1bb1ec example-conf: remove extraneous example line 2016-09-08 18:00:03 -07:00
James Lu
e06a6ae5bd example-conf: add an autoperform example 2016-08-31 18:10:51 -07:00
James Lu
663d03ed2c relay/clientbot: begin work on outgoing PMs to clientbot users (#318)
This still needs to implement PMs going the other way around, and should eventually distinguish between PMs and private notices.
2016-08-31 14:08:28 -07:00
James Lu
a546bae341 Irc: make throttle time configurable per server (defaults to 0.01s) 2016-08-21 17:25:09 -07:00
James Lu
affe54b47f log: configurable file rotation (size & backup count) 2016-08-17 22:01:00 -07:00
James Lu
84eee41734 example-conf: rewrap clientbot sample, add autoconnect entry 2016-08-10 13:24:57 -07:00
James Lu
d1dccf8dcc example-conf: update examples for name resolving
This is tested now. It works fine.
2016-08-10 11:28:35 -07:00
James Lu
e8fd97d3ba example-conf: mention relay_clientbot 2016-08-07 22:08:44 -07:00
James Lu
1ffbd0eea8 example-conf: fix typo 2016-08-02 22:27:14 -07:00
James Lu
02b5f0b7e6 changehost: explicitly forbid $host from being expanded
This will cause recursion whenever applyhost is ran and a user matches a mask based on real host or IP, which haven't changed. Any suffix or prefix applied to $host will be reapplied, often leading to invalid hosts that are too long.
2016-08-02 22:17:23 -07:00
James Lu
592ae4053e Merge branch 'master' into devel 2016-08-02 21:11:00 -07:00
James Lu
d855c6b2ea example-conf: support passwordless UnrealIRCd links by setting recv/sendpass to *
(cherry picked from commit a018dd19b5)
2016-08-02 21:10:55 -07:00
James Lu
a37eb57d6c example-conf: update default SID 2016-08-02 21:10:10 -07:00
James Lu
524c55e6f1 example-conf: less confusing channels: description 2016-08-02 21:08:18 -07:00
James Lu
f457018f89 unreal: remove mixed_link option; this is now implied
pylink<->unreal4<->unreal3.2 links are stable enough.
2016-07-29 00:37:31 -07:00
James Lu
a018dd19b5 example-conf: support passwordless UnrealIRCd links by setting recv/sendpass to * 2016-07-29 00:32:02 -07:00
James Lu
f92cb55eb1 example-conf: add sample Clientbot config 2016-07-28 22:49:25 -07:00
James Lu
13c0e50358 Irc: make certfile/keyfile optional
This was never required for S2S links to work... Why did I think that?
2016-07-28 22:49:05 -07:00
James Lu
fa1ce45bf3 relay: add configurable list of nick globs to always tag
Closes #276.
2016-07-26 16:01:42 -07:00
James Lu
cf804ca84e example-conf: mention automode 2016-07-23 22:15:54 -07:00
James Lu
d45aa6ae87 example-conf: mark relay:tag_nicks as experimental 2016-07-11 23:38:00 -07:00
James Lu
5bfba0a411 relay: make default nick tagging and separator global options (#116) 2016-07-11 21:43:43 -07:00
James Lu
2c656341e2 handlers: Optionally disable extended WHOIS replies for users marked as a bot
Closes #271. This adds a new option, "whois_show_extensions_to_bots", to the bot: section of the config.
2016-07-11 15:01:34 -07:00
James Lu
ba20016a83 example-conf: drop references to use_experimental_whois 2016-07-10 22:39:16 -07:00
James Lu
84452bec2e inspircd: always make PyLink handle WHOIS (closes #267)
This removes the use_experimental_whois option, which is always enabled now.

The rationale behind this is that PyLink cannot accurately track signon and idle times for things like relay users, without forwarding WHOIS requests between servers in a way the hooks system is really not optimized to do. However, no IDLE response means that no WHOIS data is ever sent back to the calling user, so this workaround is probably the best solution, aside from faking values.
2016-07-10 22:08:56 -07:00
James Lu
00766041f3 plugins: make DB save delay configurable 2016-07-07 22:16:21 -07:00
James Lu
d365f04199 Automode plugin stub (#204)
This supports adding/removing/listing entries and saving them to a DB, but no modes are set yet.
2016-07-07 21:06:28 -07:00
James Lu
c58c4d4a9c example-conf: capitalize our nick by default 2016-07-02 22:18:10 -07:00
James Lu
408ce701b1 service_support: support optionally setting servprotect on service bots
Closes #243.
2016-07-01 21:25:58 -07:00
James Lu
eb7aae9634 example-conf: mention what's NOT valid for a relay separator 2016-07-01 19:27:00 -07:00
James Lu
01d462c97f example-conf: Formatting, remove pingfreq and maxnicklen from examples 2016-06-27 22:49:03 -07:00
James Lu
0460df0e51 example-conf: correct wrong default pingfreq 2016-06-27 22:46:53 -07:00
James Lu
f458a40e1c inspircd: new use_experimental_whois option, which forces PyLink to handle WHOIS requests locally 2016-06-27 22:28:37 -07:00
James Lu
a0d1f627ec example-conf: update notes on autojoin and log channels 2016-06-25 14:14:19 -07:00
James Lu
1ce6102ae8 relay: allow toggling netsplit hiding 2016-06-25 13:47:59 -07:00
James Lu
a3b9c55de6 example-conf: missing "on" in description 2016-06-25 13:47:48 -07:00
James Lu
1a6bb714ac relay: drop spawn_servers toggle, remove "Relay network lost connection" quits
Relay server spawning is now always on - there's no real reason why it shouldn't work.

Closes #237.
2016-06-25 13:27:24 -07:00
James Lu
cb633cfba5 Default config file location is now pylink.yml 2016-06-21 10:59:03 -07:00
James Lu
11bbbfba19 Ctcp plugin: handles basic VERSION requests
Closes #236.
2016-06-15 11:31:40 -07:00
James Lu
b1a5f864d8 Irc: resolve hostnames when connecting
Cloeses #158.
2016-06-11 11:29:11 -07:00
James Lu
bbcddceaf9 core: configurable nicks for services (per-net and global)
Closes #220.
Closes #229.
2016-06-11 10:44:14 -07:00
James Lu
cd4bf55629 example-conf: fix wrong key for ident setting 2016-06-11 10:36:01 -07:00
James Lu
88f55fe493 example-conf: mention short name config in servers 2016-06-04 20:31:25 -07:00
James Lu
0edb516ac1 example-conf: fix syntax error
Thanks to kevin and fedxguy for finding this.
2016-06-04 20:17:00 -07:00
James Lu
61cd215e29 clarify that example link blocks are examples 2016-06-04 18:39:18 -07:00
James Lu
4cfc262bfb coreplugin: optionally respect umode +H (hideoper) (#214) 2016-05-20 20:48:41 -07:00
James Lu
357eabe27a relay: optionally relay home server & login details in /WHOIS
Closes #221. Closes #222.
2016-05-19 23:32:43 -07:00
James Lu
e4d42bf551 fantasy: fixes to respondtonick, allow configuring custom per-bot prefixes 2016-05-15 11:45:32 -07:00
James Lu
42718ed323 relay: Allow IP sharing to be toggled per network
Via a new "relay_no_ips" option in server blocks. Closes #201.
2016-04-18 12:29:15 -07:00
James Lu
eb33b4e9f2 example-conf: add nefarious example block
There are a lot of options with this protocol, so this is essential.
2016-04-17 22:48:45 -07:00
James Lu
99d861861d Let's use a default pingfreq value that makes sense...
Change this from 30 seconds to 180. Even for semi-important servers, 30 seconds between PING requests is a bit overkill.
2016-04-07 18:45:42 -07:00
James Lu
0136ff2c3a example conf: mention using spaces to indent 2016-04-02 22:26:20 -07:00
James Lu
efd13d20ee example-conf: add sample unreal block, documenting mixed_link 2016-04-02 10:13:45 -07:00
James Lu
21167e8fb3 example conf: use 1 "#" without trailing space for commented-out options
This distinguishes them better from their corresponding descriptions.
2016-01-30 23:37:01 -08:00
James Lu
0d4655c381 core: support multiple channel loggers with DIFFERENT log levels & fix example conf (#83) 2016-01-30 23:35:51 -08:00
James Lu
669e889e6f Support configurable SSL fingerprint hash types (Closes #157) 2016-01-30 23:04:13 -08:00
James Lu
08fd50d3d8 Logging improvements, including support for custom file targets (#83)
Also, the config option for setting STDOUT log level is moved from bot:loglevel to logging:stdout.
2016-01-24 18:31:16 -08:00
James Lu
14efb27fe8 Initial experimental support for logging to channels (#83)
Doesn't support rehashing and all that yet.
2016-01-23 13:52:37 -08:00
James Lu
ba7b6af89b Rename config.yml.example -> example-conf.yml
Easier syntax highlighting with editors this way, since the file extension is now something they recognize. Also, update README and .gitignore accordingly.
2016-01-03 20:02:23 -08:00