mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Change the minimal number of non-wildcard characters in hostmask from 8 to 3. Closes GH-276.
This commit is contained in:
parent
dbf1640b38
commit
18b16d84ed
@ -290,9 +290,9 @@ class IrcUser(object):
|
||||
def addHostmask(self, hostmask):
|
||||
"""Adds a hostmask to the user's hostmasks."""
|
||||
assert ircutils.isUserHostmask(hostmask), 'got %s' % hostmask
|
||||
if len(unWildcardHostmask(hostmask)) < 8:
|
||||
if len(unWildcardHostmask(hostmask)) < 3:
|
||||
raise ValueError, \
|
||||
'Hostmask must contain at least 8 non-wildcard characters.'
|
||||
'Hostmask must contain at least 3 non-wildcard characters.'
|
||||
self.hostmasks.add(hostmask)
|
||||
|
||||
def removeHostmask(self, hostmask):
|
||||
|
@ -1,3 +1,3 @@
|
||||
"""stick the various versioning attributes in here, so we only have to change
|
||||
them once."""
|
||||
version = '0.83.4.1+limnoria (2012-04-03T15:14:07+0000)'
|
||||
version = '0.83.4.1+limnoria (2012-04-04T13:08:49+0000)'
|
||||
|
Loading…
Reference in New Issue
Block a user