James Lu
9952f08c8f
opercmds: switch to irc.parseModes()
2016-06-08 16:40:00 -07:00
James Lu
e1d3003683
relay: less accusatory message for links blocked by LINKACL
2016-06-08 16:00:25 -07:00
James Lu
ed19c2b24a
relay: block topic changes from the main SID, not the PyLink client
2016-05-22 19:12:11 -07:00
James Lu
a0d20df899
docs: tweak writing-plugins & TOC, move plugin_example to plugins
...
Closes #226 .
2016-05-22 10:59:57 -07:00
James Lu
ed34c43b6c
games: remove explicit random.seed()
...
AFAIK, random already defaults the seed to the system time, and random.seed() without any arguments thus sets it to something that is already set.
2016-05-22 10:28:56 -07:00
James Lu
8c55eb43e7
relay/commands: reformat showuser output slightly
2016-05-21 23:05:39 -07:00
James Lu
03790b5939
relay: implement LINKED <netname> to filter by network
...
Closes #227 .
2016-05-21 22:55:06 -07:00
James Lu
e498a0cace
games: implement fml ( #122 )
2016-05-20 21:33:50 -07:00
James Lu
9cae7682a8
games: implement eightball ( #122 )
2016-05-20 21:13:39 -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
4e8de60005
core: Rewrite WHOIS handlers to simply listen to a custom hook (PYLINK_CUSTOM_WHOIS)
2016-05-19 23:32:43 -07:00
James Lu
a2a009cac4
games: mark servicebot as manipulatable for now
2016-05-15 11:58:45 -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
96cefb5be0
fantasy: rework to support service bots ( #216 )
2016-05-15 11:27:51 -07:00
James Lu
ae87def11f
Purge c_ and u_ prefixes from named modes
...
Closes #217 .
2016-05-15 11:05:02 -07:00
James Lu
75798b5fba
relay: don't relay kicks to service bots
2016-05-14 16:24:26 -07:00
James Lu
5d4765b30d
games: call help() with the right arguments
2016-05-14 16:19:29 -07:00
James Lu
28f992d3cb
relay: don't spawn clones for service bots
2016-05-14 16:17:20 -07:00
James Lu
523ef714a0
games: rewrite everything using the new ServiceBot API
2016-05-14 14:53:19 -07:00
James Lu
522b7b8b33
Move DataStore to structures (untested)
2016-05-14 14:53:19 -07:00
Daniel Oaks
c5242d1590
games: Fix help prefix stripper
2016-05-14 14:53:19 -07:00
Daniel Oaks
f1b0981f87
games: Write .help handler
2016-05-14 14:53:19 -07:00
Daniel Oaks
c2e3ce5bdf
games: request/remove commands
2016-05-14 14:53:19 -07:00
Daniel Oaks
45651858e4
games: Use db adapted from DataStore I wrote for mammon. May not seem too useful right now, but I have plans(tm)(c)
2016-05-14 14:53:19 -07:00
Daniel Oaks
cbb2eb318f
games: Only handle self messages if enabled
2016-05-14 14:53:19 -07:00
Daniel Oaks
c3e4cfa2de
games: Create BotClient class, use bot_clients instead of games_user
2016-05-14 14:53:19 -07:00
Daniel Oaks
f6854ab673
games: Add example dice command from my bot
2016-05-14 14:53:19 -07:00
Daniel Oaks
ed15af72ec
games: Simplify/betterise handlers, create example dice handler
2016-05-14 14:53:19 -07:00
Daniel Oaks
4054276ac0
games: Clean up CommandHandler
2016-05-14 14:53:19 -07:00
Daniel Oaks
967dafaf0d
games: Very initial barebones command handler
2016-05-14 14:53:19 -07:00
Daniel Oaks
f5efc36bf2
games: Initial plugin. Does NOTHING
2016-05-14 14:53:19 -07:00
James Lu
3930891e9f
relay: don't rely on irc.pseudoclient as much during init
2016-05-14 14:03:59 -07:00
James Lu
32bc5f120b
core: migrate the main client to ServiceBot ( #216 )
...
- irc.spawnMain is dropped. Clients are now spawned in the endburst loop, after protocol negotiation completes. This allows PyLink to spawn clients with hideoper, etc., closing #194 .
- utils.add_cmd and irc.callCommand are now just wrappers around world.services['pylink'].add_cmd and call_cmd respectively.
- coreplugin registers the main client while it is loaded up, before any commands are added.
2016-05-14 13:29:23 -07:00
James Lu
bcc648adff
relay: support relaying more channel modes
...
flood, flood_unreal, joinflood, freetarget, c_noforwards, and noinvite are whitelisted with this commit.
2016-05-11 21:18:30 -07:00
James Lu
366836b821
relay: burst topics from the main PyLink server
...
When a channel is being initialized, PyLink has no specific network to propagate topics from; they just get sent from whichever linked network we happened to iterate over first. This prevents misleading topic setters like 'randomnet.relay' from showing up.
2016-05-02 18:54:46 -07:00
James Lu
7b2319b7c5
changehost: migrate to irc.getHostmask
2016-05-01 15:05:30 -07:00
James Lu
917b0de596
relay: log spawnlocks calls
2016-05-01 14:59:13 -07:00
James Lu
f6a9f0729a
relay: don't error if the privmsg source on a remote network is missing
...
This can happen when someone speaks while a network is initializing, for example.
2016-05-01 14:59:13 -07:00
James Lu
bb8a548e74
relay: make handle_quit error-tolerant if the target is missing
...
In cases where multiple networks disconnect simultaneously, the relay user for a quitting client from the first dying network might have also disappeared while handle_disconnect was processing the disconnection of a second dying network. This should take into account those situations.
2016-05-01 14:59:13 -07:00
James Lu
54987fde4e
relay: code cleanup, possibly fix clones for PyLink clients being spawned from rare race conditions
2016-05-01 14:59:13 -07:00
James Lu
ab5624343b
relay: fix regression causing 'load relay' to freeze
2016-05-01 14:59:13 -07:00
James Lu
69cd3cfbf8
relay: fix race conditions when multiple networks disconnect simultaneously
2016-05-01 14:59:13 -07:00
James Lu
3bb1208e74
core: move toLower to Irc ( #199 )
2016-04-30 16:57:38 -07:00
James Lu
2fe2e9c8c4
core: move isOper, checkAuthenticated to Irc ( #199 )
2016-04-30 16:54:11 -07:00
James Lu
4bd4c23a08
networks: also remove coreplugin call
2016-04-30 16:50:04 -07:00
James Lu
78f8a2fc8d
core: move isManipulatableClient, getHostmask to Irc
2016-04-30 16:44:37 -07:00
James Lu
064cb9b6aa
core: move reverseModes, joinModes into Irc
2016-04-30 16:33:46 -07:00
James Lu
a069ce8cb4
Unbrick loglevel changing ( Closes #208 )
2016-04-23 11:06:08 -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
4c83bfc3ef
relay: don't error if irc.pseudoclient hasn't been initialized yet
2016-04-18 11:52:01 -07:00