mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Merge pull request #690 from Mkaysi/patch-1
src/conf.py: set default banmask to host.
This commit is contained in:
commit
07f3392a8c
@ -228,7 +228,7 @@ class ChannelTestCase(ChannelPluginTestCase):
|
|||||||
self.assertResponse('channel ignore list', "'%s'" % expect)
|
self.assertResponse('channel ignore list', "'%s'" % expect)
|
||||||
self.assertNotError('channel ignore remove %s' % expect)
|
self.assertNotError('channel ignore remove %s' % expect)
|
||||||
self.assertRegexp('channel ignore list', 'not currently')
|
self.assertRegexp('channel ignore list', 'not currently')
|
||||||
ignore('foo!bar@baz', '*!bar@baz')
|
ignore('foo!bar@baz', '*!*@baz')
|
||||||
ignore('foo!*@*')
|
ignore('foo!*@*')
|
||||||
with conf.supybot.protocols.irc.banmask.context(['exact']):
|
with conf.supybot.protocols.irc.banmask.context(['exact']):
|
||||||
ignore('foo!bar@baz')
|
ignore('foo!bar@baz')
|
||||||
|
@ -1054,7 +1054,7 @@ class Banmask(registry.SpaceSeparatedSetOfStrings):
|
|||||||
return ircutils.joinHostmask(bnick, buser, bhost)
|
return ircutils.joinHostmask(bnick, buser, bhost)
|
||||||
|
|
||||||
registerChannelValue(supybot.protocols.irc, 'banmask',
|
registerChannelValue(supybot.protocols.irc, 'banmask',
|
||||||
Banmask(['user', 'host'], _("""Determines what will be used as the
|
Banmask(['host'], _("""Determines what will be used as the
|
||||||
default banmask style.""")))
|
default banmask style.""")))
|
||||||
|
|
||||||
registerGlobalValue(supybot.protocols.irc, 'strictRfc',
|
registerGlobalValue(supybot.protocols.irc, 'strictRfc',
|
||||||
|
Loading…
Reference in New Issue
Block a user