commands.py: Explain the odd userHostmask check in getOtherUser

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-09-23 18:29:49 -04:00
parent 6418b3d8c3
commit 56fbbe9f36

View File

@ -292,6 +292,8 @@ def getUser(irc, msg, args, state):
state.errorNotRegistered(Raise=True)
def getOtherUser(irc, msg, args, state):
# Although ircdb.users.getUser could accept a hostmask, we're explicitly
# excluding that from our interface with this check
if ircutils.isUserHostmask(args[0]):
state.errorNoUser(args[0])
try: