mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Fixed getOtherUser.
This commit is contained in:
parent
b32215e169
commit
49019308d7
@ -282,11 +282,12 @@ def getOtherUser(irc, msg, args, state):
|
|||||||
del args[0]
|
del args[0]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
getHostmask(irc, msg, args, state)
|
getHostmask(irc, msg, [args[0]], state)
|
||||||
hostmask = state.args.pop()
|
hostmask = state.args.pop()
|
||||||
state.args.append(ircdb.users.getUser(hostmask))
|
state.args.append(ircdb.users.getUser(hostmask))
|
||||||
|
del args[0]
|
||||||
except (KeyError, callbacks.Error):
|
except (KeyError, callbacks.Error):
|
||||||
irc.errorNoUser(name=hostmask)
|
irc.errorNoUser(name=args[0])
|
||||||
|
|
||||||
def _getRe(f):
|
def _getRe(f):
|
||||||
def get(irc, msg, args, state, convert=True):
|
def get(irc, msg, args, state, convert=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user