James Lu
b083b6dede
commands.version: replace license notice with (a much more useful) Python version
2020-01-26 13:48:43 -08:00
James Lu
80188c3673
Sort imports via isort
2019-07-14 15:12:29 -07:00
James Lu
6ac2daebfa
commands: improvements to the 'showuser' command
...
- Indent output lines for each specific user
- Skip showing Home server / Nick TS line if neither is available
- Handle nicks with spaces in them
- Show user modes after basic details
2019-07-14 13:21:47 -07:00
James Lu
19c7dce931
commands: add a 'shownet' command
...
Basic info available to everyone include network name, protocol module, and encoding.
For those with the commands.shownet.extended permission, this also allows looking up disconnected networks defined in the config, and shows configured IP:port, PyLink hostname, SID, and SID range.
Closes #578 .
2019-06-26 13:54:32 -07:00
James Lu
0836845ff9
Merge relay showchan/showuser info into commands.py
...
This makes error handling easier and is needed to support duplicate nicks anyways.
2019-06-16 11:22:36 -07:00
James Lu
dfc4e4954a
commands: remove explicit cutoff of 20 users/line in showchan
...
irc.reply() in PyLink 2.0+ handles line wrapping automatically.
2019-06-16 11:20:26 -07:00
James Lu
fe95a4a571
commands: rework showuser to better handle duplicate nicks
...
This is freely allowed on Discord, for example.
2019-06-16 11:19:19 -07:00
James Lu
ad9a51fc33
commands.showuser: properly handle numeric-type UIDs and channels
2019-04-09 19:10:20 -07:00
James Lu
2df3dc280c
commands.showuser: show home server and TS as "N/A" if they are spoofed values
2018-05-26 01:14:32 -07:00
James Lu
2cb4a06e64
commands: report times in showuser, showchan in UTC
...
XXX: we could perhaps use abstraction to this since we're repetitively chaining commands
XXX: 'ts' is not type-safe yet, some protocol modules are storing it as a string?!
2018-04-12 10:58:09 -07:00
James Lu
5fd216c720
commands: fix 'showchan' displaying status prefixes in reverse
2018-01-22 08:10:55 -08:00
James Lu
29458c8e47
commands, opercmds: remove explicit to_lower usage
...
Closes #500 - I'm going to skip relay and automode because DataStore doesn't do case normalization yet.
2017-08-07 21:47:31 -07:00
James Lu
187ca11946
commands: show an error if 'echo' is called without a text argument.
2017-08-07 00:48:28 -07:00
James Lu
4379ef68ef
Migrate coremods.permissions to snake case
2017-08-02 22:24:23 +08:00
James Lu
7d68c03101
various: convert sortPrefixes/getPrefixModes calls to snake case
2017-06-30 21:40:05 -07:00
James Lu
10bca676fc
coremods, plugins: migrate to snake case
2017-06-29 23:01:39 -07:00
James Lu
4696519bad
plugins: migrate irc.proto calls to irc
2017-06-25 02:09:59 -07:00
James Lu
60a0bcdc7a
Rename config option log:stdout -> log:console
...
Closes #386 .
2017-06-02 08:42:32 -07:00
James Lu
04f88df385
Actually use 'irc' in main() and die() as a keyword argument (per docs)
2017-05-12 19:19:52 -07:00
James Lu
79e2d20d9d
commands: remove extraneous private=True from showchan
2017-04-27 07:28:26 -07:00
James Lu
709b1d2ead
commands: show TS on networks without has-ts as well
2017-04-09 14:54:16 -07:00
James Lu
f188b29911
plugins: migrate to server capabilities
2017-03-23 23:37:24 -07:00
James Lu
d6a6d069bc
Move 'mkpasswd' to the commands plugin
2017-01-22 16:42:46 -08:00
James Lu
f9adaa85ca
commands: implement 'logout'
...
Closes #370 .
2016-12-16 19:05:08 -08:00
James Lu
045abfa9c1
commands: add permissions checks to echo, showuser, showchan, and status
2016-12-16 18:31:19 -08:00
James Lu
2de36caea0
commands: fix previous commit
2016-12-09 22:13:32 -08:00
IotaSpencer
b0296933a1
plugins/commands.py: change over to permissions API
2016-12-09 22:13:32 -08:00
Ken Spencer
d467d27ecd
plugins: change remaining plugins over irc.error() use
2016-11-18 23:11:44 -08:00
James Lu
197d9fc14a
commands: show topic only if it exists, disable TS output on clientbot
2016-08-02 23:57:18 -07:00
James Lu
eb032eb7f9
commands: explicitly sort mode lists in 'showuser' and 'showchan'
2016-07-31 21:46:33 -07:00
James Lu
1ef89560e2
core: rename IrcUser.identified attribute to IrcUser.account
2016-07-29 20:16:05 -07:00
James Lu
62f78a60a9
commands: refactor showchan to use IrcChannel.getPrefixModes()
2016-07-24 11:03:23 -07:00
James Lu
04e37ebd04
commands: mention the VCS version as well
2016-07-24 10:59:25 -07:00
James Lu
6904ba9606
commands: remove reference to 'signon time'
2016-07-11 16:49:08 -07:00
James Lu
72c48502c6
Generate __init__.py with package version on runtime
...
Closes #259 . This removes world.version and replaces it with pylinkirc.__version__ where the former was used.
2016-07-03 00:26:03 -07:00
James Lu
91a663d5c7
commands, relay: use irc.reply() with private=True instead of irc.msg()
...
This is more flexible, etc.
2016-06-30 18:43:56 -07:00
James Lu
481d70eff8
New import paths for properly installed pylinkirc
2016-06-20 18:18:54 -07:00
James Lu
8c55eb43e7
relay/commands: reformat showuser output slightly
2016-05-21 23:05:39 -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
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
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
8f32727a3f
Move rehash into core ( Closes #178 )
2016-04-09 09:54:04 -07:00
James Lu
8135f3a735
core: Depluralize prefixmodes mappings ( #168 )
...
This is an API breaking change. I really don't know why I made these keys plural to start, since it only made things more complicated. Prefix modes are not pluralized in the list of supported modes of each IRCd.
2016-03-19 17:25:04 -07:00
James Lu
a8303d0110
commands: sort channel list in 'showuser' output
2016-03-14 14:35:09 -07:00
James Lu
df23b79780
commands: reformat 'showuser' output, and show services login info ( #25 )
2016-02-20 18:24:29 -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
cf1de08457
commands: support rehashing channel loggers
2016-01-23 13:52:37 -08:00
James Lu
2503bd3ee5
commands: In rehash, use irc.disconnect() to disconnect networks removed from conf
2016-01-23 13:52:37 -08:00