Fix thing
This commit is contained in:
parent
f6a169fdee
commit
8e45ab5978
@ -23,14 +23,10 @@ def hvisit(var, wrapper, message):
|
||||
if VISITED.get(wrapper.source):
|
||||
wrapper.pm(messages["harlot_already_visited"].format(VISITED[wrapper.source]))
|
||||
return
|
||||
target = get_target(var, wrapper, re.split(" +", message)[0], allow_bot=True)
|
||||
target = get_target(var, wrapper, re.split(" +", message)[0], not_self_message="harlot_not_self")
|
||||
if not target:
|
||||
return
|
||||
|
||||
if target is wrapper.source:
|
||||
wrapper.pm(messages["harlot_not_self"])
|
||||
return
|
||||
|
||||
evt = Event("targeted_command", {"target": target.nick, "misdirection": True, "exchange": True})
|
||||
evt.dispatch(wrapper.client, var, "visit", wrapper.source.nick, target.nick, frozenset({"immediate"}))
|
||||
if evt.prevent_default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user