Permalink
Browse files

Change the minimal number of non-wildcard characters in hostmask from…

… 8 to 3. Closes GH-276.
  • Loading branch information...
1 parent dbf1640 commit 18b16d84edc6050f282790c5fdcbd8679eb1dc94 @ProgVal committed Apr 4, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/ircdb.py
  2. +1 −1 src/version.py
View
@@ -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):
View
@@ -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.