Commit Graph

92 Commits

Author SHA1 Message Date
Valentin Lorentz
e90b89f5b2 Owner: Honor supybot.reply.error.detailed on command syntax errors. 2020-05-13 19:58:06 +02:00
Valentin Lorentz
ecc2c32950 Add support for storing STS policies.
If on an insecure connection: reconnect.
If on a secure connect: store it and do nothing else.

For now, stored STS policies are not read when connecting to an
insecure server.
2020-05-01 19:46:19 +02:00
Valentin Lorentz
0b0da9716d callbacks: honor network-specificity of supybot.reply.whenAddressedBy.
A side-effect is that plugins should now pass 'irc' instead of 'irc.nick'
when they call 'callbacks.addressed()'.
2020-04-11 15:00:46 +02:00
Valentin Lorentz
9ab908759a Use importlib instead of imp.
importlib is deprecated.
2020-01-26 12:00:08 +01:00
Valentin Lorentz
9e58b2c936 Owner: Fix @upkeep reply on recent Pypy versions.
Because their gc.collect() function returns None.
2019-11-01 22:21:51 +01:00
Valentin Lorentz
c1ae3f5c81 all plugins: Use msg.channel instead of msg.args[0] + give network name to self.registryValue. 2019-08-24 23:35:01 +02:00
Valentin Lorentz
8bb31a54e7 Strip statusmsg chars in core to determine the actual channel.
Use msg.channel if relevant, otherwise strip them locally.
2019-08-24 14:52:59 +02:00
James Lu
ec2cf4af37 Owner: fix 'unload' writing duplicate entries to supybot.plugins
Fetch the existing plugin callback to determine the plugin's name in the right case.

Closes #1295.
2017-10-27 23:35:44 -07:00
James Lu
03c4529d9e Owner: make irc.state.history network specific
It is fairly counterintuitive for plugins to read the IrcState history, only to find that the message it got is from the wrong network.
I'm not sure why the original Supybot chose to link all the history buffers together, as those lines came from before Supybot was introduced to Git.

Closes #1211.
2017-08-03 12:25:34 -07:00
Valentin Lorentz
e52db064ca Less ambiguous name for the content of @owner announce. 2017-01-22 12:50:00 +01:00
nyuszika7h
dab4737010 Allow specifying the format of Owner.announce
Someone asked how to remove the owner's username from announcements,
so it may be useful to make this configurable instead of making them
edit a core plugin's code which is not the best idea,
or write another plugin.
2017-01-22 12:34:54 +01:00
Johannes Löthberg
7c757cd52e disable: Actually disable command by plugin if specified
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2016-11-03 14:28:41 +01:00
Valentin Lorentz
b33dadea9e Make INFO a bit less verbose when connecting. 2016-02-21 11:01:31 +01:00
Valentin Lorentz
685bedcd74 Add config variable supybot.abuse.flood.command.notify. 2015-09-16 21:32:25 +02:00
Valentin Lorentz
c81d5d3151 Make the 'command flood' banmask follow supybot.protocols.irc.banmask. 2015-09-01 20:40:32 +02:00
Valentin Lorentz
c3a2c800f1 Remove need for 2to3. 2015-08-11 16:50:23 +02:00
Valentin Lorentz
17bf893437 Fix imports. 2015-08-09 09:21:12 +02:00
Valentin Lorentz
5b9e07ecd2 Fix previous commit. 2015-08-09 00:47:50 +02:00
Valentin Lorentz
216c5d213f Replace sys.version_info[0] usages with minisix.PY{2,3}. 2015-08-09 00:23:03 +02:00
Valentin Lorentz
be118c3338 Remove use of fix_dict fixer. 2015-08-08 23:08:49 +02:00
Valentin Lorentz
10a9bc578b Owner: Don't crash on "upkeep high" on Python 3.
Python 3's except statement removes the need for sys.exc_clear,
see https://www.python.org/dev/peps/pep-3100/
2015-05-19 19:10:00 +02:00
James Lu
b243c83e41 Admin/Owner: Use standard substitution for part/quit messages 2015-02-05 20:26:14 -08:00
James Lu
0e0feb1a84 Owner: substitute %version% for the Supybot version in plugins.Owner.quitMsg (Closes ProgVal#847)
Cherry-picked from commit GLolol@205199e.
2015-02-04 21:20:45 -08:00
James Lu
a755238ef4 Add/improve help for Debug + plugins from F-W:
- Debug
- Factoids
- Format
- Games
- Google
- Herald
- Internet
- Karma
- Lart
- Math
- Misc
- MoobotFactoids
- Network
- News
- NickAuth
- Nickometer
- Note
- Owner
- Protector
- Quote
- QuoteGrabs
- Relay
- Scheduler
- Seen
- ShrinkUrl
- Status
- String
- Time
- Todo
- Topic
- URL
- Unix
- User
- Utilities
- Web
2014-11-30 12:07:41 -08:00
Valentin Lorentz
131e5d584a Merge pull request #895 from GLolol/no-reload-owner
Owner: don't allow reloading the Owner plugin
2014-11-26 08:18:35 +01:00
GLolol
f96d00d26e Owner: fix a typo in plugin.py 2014-11-10 18:34:49 -08:00
GLolol
7e26a7fe3f Owner: don't allow reloading the Owner plugin 2014-11-03 07:45:32 -08:00
GLolol
99db7afbea Owner: update error messages
s/This plugin is incompatible/This plugin may be incompatible/
2014-11-01 11:20:05 -07:00
GLolol
76a5616bbe Owner: improve error on loading missing plugins 2014-11-01 11:08:36 -07:00
GLolol
1b2617bf8e Owner: catch ImportError in a less confusing, friendlier way 2014-11-01 10:57:01 -07:00
Valentin Lorentz
e49b6fe8d2 Owner: Make error message of plugin loading at startup more explicit. Closes GH-850. 2014-09-14 11:08:28 +00:00
Valentin Lorentz
39dad55b6f Make renaming of commands persistant. Closes GH-789. 2014-07-18 20:43:24 +02:00
Nicolas Coevoet
f9afcffb3a Fixes ProgVal/Limnoria#611 2014-05-09 14:39:57 +02:00
GLolol
b8ada98df1 Fix incorrect error on loading nonexistent plugin 2014-02-06 18:52:33 -08:00
Valentin Lorentz
bb7db3ab21 Continue accelerating the 2to3 step (remove fix_except). 2014-01-20 15:49:15 +01:00
Valentin Lorentz
2fda69b4d6 Continue accelerating the 2to3 step (remove fix_raise). 2014-01-20 15:43:55 +01:00
Valentin Lorentz
21144f7c9c Don't send JOIN on connection if there is no channels to join. 2013-07-14 09:44:34 +02:00
Valentin Lorentz
6ffcf122a7 Remove code specific to Python 2.{3,4,5}. 2013-05-13 15:27:26 +02:00
Valentin Lorentz
8f6063135e Add supybot.abuse.flood.interval. 2013-05-09 09:40:55 +02:00
Valentin Lorentz
23e84cfff9 Join all channels in one message when connecting. 2013-03-27 16:55:45 +01:00
Valentin Lorentz
3dba9088b0 Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	INSTALL
	plugins/ChannelLogger/README.txt
	plugins/ChannelStats/README.txt
	plugins/Google/plugin.py
	plugins/Google/test.py
	plugins/Plugin/test.py
	plugins/Web/test.py
	setup.py
	src/callbacks.py
	src/ircdb.py
	src/irclib.py
	src/utils/str.py
	test/test_irclib.py
2013-01-01 21:11:24 +01:00
Valentin Lorentz
0267f15a45 Owner: Reload module configuration in @reload. 2012-09-17 17:49:13 +02:00
James McCoy
82ecf36fcd Update my name/contact information
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
Valentin Lorentz
22befe3d61 Owner: Prevent use of uninitialized variable. 2012-08-05 18:28:17 +02:00
Valentin Lorentz
1606e2d1e0 Owner: Fix docstring. Closes GH-133. 2012-02-11 15:19:14 +01:00
James McCoy
d5593bbba2 Merge branch 'disable' 2011-10-22 15:52:44 -04:00
Valentin Lorentz
8fb97c56bc Owner: Fix bug with @enable and @disable if a plugin is given. Closes GH-43. Closes GH-44.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-10-22 15:52:19 -04:00
skizzhg
6e5350def6 ChannelLogger & Format & Karma & Owner & Reply & Status & URL & Unix: Fix typoes. 2011-08-10 11:26:47 +02:00
Valentin Lorentz
5275d708e5 Owner: Fix bug with @enable and @disable if a plugin is given. Closes GH-43. Closes GH-44. 2011-06-29 13:56:22 +02:00
Valentin Lorentz
1c07963a90 Owner: Being ignored for commands flood is now restricted to non-trusted users (instead of non-owners). Closes GH-13. 2011-06-22 20:02:43 +02:00