Skip to content

Commit

Permalink
Change the minimal number of non-wildcard characters in hostmask from…
Browse files Browse the repository at this point in the history
… 8 to 3. Closes GH-276.
  • Loading branch information
progval committed Apr 4, 2012
1 parent dbf1640 commit 18b16d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ircdb.py
Expand Up @@ -290,9 +290,9 @@ def checkHostmask(self, hostmask, useAuth=True):
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):
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
@@ -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)'

0 comments on commit 18b16d8

Please sign in to comment.