3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-07-31 18:07:22 +02:00

Commit Graph

  • 67f5bbba4b add a utils.started threaded trigger, so plugins can ACTUALLY wait until all Irc objects have been initialized to do their work James Lu 2015-07-13 16:07:55 -07:00
  • a7a5688e69 pr/insp: add sjoinClient(), make auto-endburst optional for spawnServer James Lu 2015-07-13 16:06:58 -07:00
  • b3528a2b04 relay: better channel initialization James Lu 2015-07-13 00:01:04 -07:00
  • b3206822d2 relay: fix users being cloned on every JOIN James Lu 2015-07-12 23:31:26 -07:00
  • 6b9ec694b7 relay: basic JOIN handling James Lu 2015-07-12 23:28:54 -07:00
  • 45cef19eaa Make plugins global, not per IRC instance James Lu 2015-07-12 23:28:34 -07:00
  • 3c2d0dbe3f relay: (de)initialize channels using shared initialize/removechannel() James Lu 2015-07-12 19:03:18 -07:00
  • 0dc0770d6d relay: add LINK and DELINK commands; many fixes to checkers (WIP) James Lu 2015-07-12 17:59:09 -07:00
  • 6870e041bc relay: catch nicks that start with digits and add tests James Lu 2015-07-12 16:59:49 -07:00
  • 3edee17802 .gitignore: add *.db James Lu 2015-07-12 16:28:33 -07:00
  • b538037e22 relay: add normalizeNick stub James Lu 2015-07-12 14:02:17 -07:00
  • d19cabf16c pr/insp: save irc.max{nick|chan}len correctly as integers James Lu 2015-07-12 14:00:52 -07:00
  • c655d975a6 pr/insp: remove isNick check in spawnClient James Lu 2015-07-12 14:00:33 -07:00
  • 450584b963 relay: hack in utils.schedulers so that exportDB only gets queued once globally James Lu 2015-07-12 13:09:35 -07:00
  • e073f21417 relay: spawn servers, raise exportDB interval to 60; use main(irc) James Lu 2015-07-11 20:14:30 -07:00
  • 5d5f556ee3 main: load plugins in a separate loop, and call the main() of loaded plugins if present James Lu 2015-07-11 20:11:48 -07:00
  • 149921ac47 main: remove incorrect usage of socket.shutdown, and raise socket timeout to something more reasonable James Lu 2015-07-11 20:10:21 -07:00
  • f8a7bc6033 pr/insp: use TS6SIDGenerator in spawnServer if no SID is explicitly given James Lu 2015-07-11 20:09:36 -07:00
  • e250409b46 utils: add a new TS6SIDGenerator() class, for generating SIDs based on ranges James Lu 2015-07-11 19:56:26 -07:00
  • 8d4a06b60e Initial PyLink-Relay stub, with CREATE and DESTROY commands using a pickle database. James Lu 2015-07-10 20:26:46 -07:00
  • 11e27b9f36 main.Irc: only load plugins after the IRC object is initialized in utils.networkobjects James Lu 2015-07-10 20:24:08 -07:00
  • 3156d83ec3 plugins/admin: rename quitclient -> quit James Lu 2015-07-10 16:43:03 -07:00
  • 7a6c32e0c4 utils: add isOper() function James Lu 2015-07-10 16:42:53 -07:00
  • 1b4ec414cf Fix config format for multinet James Lu 2015-07-10 14:17:43 -07:00
  • dba20d4efc Merge pull request #38 from GLolol/multinet-v2 James Lu 2015-07-10 11:21:28 -07:00
  • eae0aa5aa8 pr/insp: Add missing killServer/killClient functions #38 James Lu 2015-07-09 19:05:37 -07:00
  • ffec80ee45 tests/: update for new multi-net config format James Lu 2015-07-09 18:42:38 -07:00
  • 652d53c29e pr/insp: drop tests for validing channel names James Lu 2015-07-09 18:40:32 -07:00
  • eec024bf9a Second attempt at multinet support, by wrapping threading.Thread around Irc.run() James Lu 2015-07-09 18:29:00 -07:00
  • e54e17a0ea Irc.send: safeguard against newlines in input! James Lu 2015-07-09 17:25:10 -07:00
  • 070bba77cb admin.py: check to see if queried channels exist; sort output fields James Lu 2015-07-09 17:05:23 -07:00
  • 08a187aee6 pr/insp: add updateClient() and FIDENT/FHOST/FNAME handlers James Lu 2015-07-09 17:04:24 -07:00
  • 96c3ea2d82 pr/insp: add topic/invite/knockClient commands James Lu 2015-07-09 16:32:29 -07:00
  • c8f12f2ab1 move messaging functions to protocol (#35) James Lu 2015-07-09 16:23:20 -07:00
  • e7922be9fb plugins/commands.py: warn on failed login attempts James Lu 2015-07-08 23:21:01 -07:00
  • 1c7f2f6a83 utils.applyModes: fix logging output; only remove delete modes with args if new args are different James Lu 2015-07-08 23:13:23 -07:00
  • b27fcc7f8f utils.applyModes: operate on a copy of the original modelist James Lu 2015-07-08 23:11:44 -07:00
  • 27bb6af7f6 plugins/admin.py: add 'mode' and 'showchan' commands James Lu 2015-07-08 23:01:09 -07:00
  • f01269287e pr/insp: remove checks for valid nick/channel; they're done in plugins now James Lu 2015-07-08 23:00:50 -07:00
  • edfcacfdd1 plugins/admin.py: remove -client suffixes from commands, and fix argument checking James Lu 2015-07-08 22:50:19 -07:00
  • 35f8a0e25f utils.parseModes: be a bit more fault-tolerant James Lu 2015-07-08 22:42:04 -07:00
  • 20772e5429 inspircd.nickClient: allow nick 0 to equal the target user's UID James Lu 2015-07-08 21:17:34 -07:00
  • 049b7f5049 pr/insp: add modeServer, modeClient commands James Lu 2015-07-08 18:23:32 -07:00
  • cbfabb2ba1 pr/insp: add OPERTYPE command handler James Lu 2015-07-08 18:03:08 -07:00
  • 7a37f50a1a utils.joinModes: support joining modes with prefixes James Lu 2015-07-08 16:58:59 -07:00
  • b92a9ce950 pr/insp: fix handle_mode setting modes on the wrong client James Lu 2015-07-08 15:10:09 -07:00
  • 5989f11ec0 pr/insp: tests for SERVER, SAVE, NICK, and INVITE James Lu 2015-07-08 13:56:28 -07:00
  • 8576778ddc Make the 'bot' conf block available in Irc() as irc.botdata James Lu 2015-07-08 13:54:45 -07:00
  • 2d4d8dd247 tests and stuff James Lu 2015-07-08 13:35:20 -07:00
  • 85e6a1aea2 pr/insp: more tests for hooks, etc James Lu 2015-07-07 20:59:35 -07:00
  • 0f03a2398b Updates to test_proto_inspircd.py James Lu 2015-07-07 18:30:42 -07:00
  • 8f75c5363c Move all the FakeIRC stuff to classes.py, update FakeIRC with the ability to get hook data James Lu 2015-07-07 18:07:20 -07:00
  • a177a58ae7 pr/insp: fix some bugs in spawnClient James Lu 2015-07-07 17:46:56 -07:00
  • 7fb60c1ffa pr/inspircd: finish off handlers (add KNOCK, INVITE, NOTICE) James Lu 2015-07-07 15:31:12 -07:00
  • 098b29ae2d Correction: it is legal for a server name to end with '.', but it can't start with it James Lu 2015-07-07 14:31:47 -07:00
  • cfc840ebb3 Actually implement 'nick', 'ident', and 'loglevel' config options James Lu 2015-07-07 12:14:55 -07:00
  • 087a4e7e5c Drop "prefix" config entry, it's not being used James Lu 2015-07-07 12:03:30 -07:00
  • 7f6c8b0e52 pr/inspircd: enforce minimum protocol version of 1202 James Lu 2015-07-07 10:55:14 -07:00
  • 4cc7781f0d pr/insp: send oldnick in handle_nick hook James Lu 2015-07-06 19:44:55 -07:00
  • d833be5f4b pr/insp: smarter spawnClient() with kwargs; implement conf['bot']['prefix'] James Lu 2015-07-06 19:42:09 -07:00
  • 33d23893f8 pr/inspircd: update channel TS when receiving remote FJOIN with lower TS James Lu 2015-07-06 19:00:20 -07:00
  • 8bed47e7bb pr/inspircd: handlers for FTOPIC and TOPIC (ref #31); make handle_nick return 'newnick' instead of 'target' as arg James Lu 2015-07-06 15:33:23 -07:00
  • fe1f90bcd1 FakeIRC: swap arrows in debug output James Lu 2015-07-06 12:53:24 -07:00
  • b3f369aa81 tests for utils.joinModes so I don't break it in the future James Lu 2015-07-06 12:38:45 -07:00
  • 74339d1038 Fix joinModes, and use it in protocol/inspircd's joinClient James Lu 2015-07-06 12:28:10 -07:00
  • 170620c410 applyModes: remove old modepairs when setting non-list modes that require params James Lu 2015-07-05 23:15:17 -07:00
  • 48c3b4b2e9 applyModes: chop off the +/- part of each mode tuple when storing mode lists James Lu 2015-07-05 23:00:14 -07:00
  • f1e26b6c55 Fix tests for FakeIRC and update comment style James Lu 2015-07-05 22:59:55 -07:00
  • 2cbd6fd851 Tests for FMODE/FJOIN, and bugfixes James Lu 2015-07-05 19:19:49 -07:00
  • 87781abc82 Logging format tweaks James Lu 2015-07-05 16:46:57 -07:00
  • 211decd2aa everything: Improve logging James Lu 2015-07-05 13:44:48 -07:00
  • 54dff7a15a Convert print() calls to log calls, Round 1 James Lu 2015-07-05 13:29:01 -07:00
  • f06bcc7928 Merge commit 'bd755e137ffa034007a77d75fbd00d21e759163e' into wip/logger-module James Lu 2015-07-05 13:22:17 -07:00
  • bd755e137f pr/inspircd: fix a typo in removeClient James Lu 2015-07-05 13:07:18 -07:00
  • bd03e00c74 applyModes: ignore unsupported prefix modes (e.g. InspIRCd's +yY) James Lu 2015-07-05 12:53:53 -07:00
  • b22f674785 Support prefix modes (+qaohv); refactor applyModes to apply in place; add removeuser() to IrcChannel James Lu 2015-07-05 12:48:39 -07:00
  • d62a413c50 fix last commit James Lu 2015-07-05 12:40:34 -07:00
  • 2ecaab1586 pr/inspircd: catch KeyError only in the function lookup, not the function call! James Lu 2015-07-05 12:38:55 -07:00
  • dafeff6324 Add channel mode handling (more testing needed) James Lu 2015-07-05 00:20:45 -07:00
  • 8b93b78d13 Support modes with arguments in our modestring parsers James Lu 2015-07-04 23:49:28 -07:00
  • 3749e642f2 pr/inspircd: fix typo in handle_mode James Lu 2015-07-04 23:47:27 -07:00
  • 3e86cbdd33 Better protocol capability negotiation James Lu 2015-07-04 23:12:00 -07:00
  • 35346d7990 pr/inspircd: part messages are optional... James Lu 2015-07-04 19:08:58 -07:00
  • d23d34e316 Refactor hooks to send parsed arguments instead of raw args James Lu 2015-07-04 19:00:29 -07:00
  • b6f489fa9c add tests for KILL, KICK, UID, and SERVER handlers James Lu 2015-07-04 12:34:33 -07:00
  • 8ea62c31de tests for spawnServer and SQUIT, make server name case-insensitive James Lu 2015-07-04 11:57:21 -07:00
  • 942f97352d test kick/nickClient; make kickClient update channel userlist... James Lu 2015-07-03 23:48:28 -07:00
  • 18528c9cab add tests for spawn/quit/join/partClient James Lu 2015-07-03 23:32:41 -07:00
  • d6341109be inspircd: bug fixes found by testing James Lu 2015-07-03 23:30:38 -07:00
  • 0bfe2b2a21 test_proto_inspircd: fix 'python3 -m unittest' compat James Lu 2015-07-03 18:26:13 -07:00
  • 8ad68023d6 Add tests for pr/inspircd, a common FakeIRC class, and tests for that too James Lu 2015-07-03 18:07:47 -07:00
  • fed107b12b main.py: don't assign self.socket twice James Lu 2015-07-03 18:07:32 -07:00
  • 0c8a30323a proto/inspircd: raise ProtocolError instead of calling sys.exit on errors James Lu 2015-07-03 18:07:01 -07:00
  • 0f4d3df757 inspircd.py: spawnServer tweaks James Lu 2015-07-03 17:10:32 -07:00
  • 991e86a8cb unittests! wow! James Lu 2015-07-03 17:05:44 -07:00
  • 072cc72602 defaultdict for channels, fix user tracking in {join|part}Client, isInternal* to utils James Lu 2015-06-23 19:29:53 -07:00
  • 6370ad492f Add basic command hooks (ref #18) James Lu 2015-06-23 19:08:43 -07:00
  • 28e7b52ef4 utils.TS6UIDGenerator: initialize SID variable once per instance James Lu 2015-06-22 16:51:42 -07:00
  • f37af68e3f utils: tweak TS6UIDGenerator again James Lu 2015-06-21 18:11:17 -07:00
  • 6a69ed0459 proto/inspircd: handle RSQUIT for removing PyLink leaves James Lu 2015-06-21 17:07:31 -07:00