mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
commands.py: Explain the odd userHostmask check in getOtherUser
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
6418b3d8c3
commit
56fbbe9f36
@ -292,6 +292,8 @@ def getUser(irc, msg, args, state):
|
|||||||
state.errorNotRegistered(Raise=True)
|
state.errorNotRegistered(Raise=True)
|
||||||
|
|
||||||
def getOtherUser(irc, msg, args, state):
|
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]):
|
if ircutils.isUserHostmask(args[0]):
|
||||||
state.errorNoUser(args[0])
|
state.errorNoUser(args[0])
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user