From 56fbbe9f364c693334808b3328f6d7285ac5d202 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 23 Sep 2009 18:29:49 -0400 Subject: [PATCH] commands.py: Explain the odd userHostmask check in getOtherUser Signed-off-by: James Vega --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index 7c1d8ea36..f1e4fd591 100644 --- a/src/commands.py +++ b/src/commands.py @@ -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: