Compare commits

..

No commits in common. "305f1cd61639ac6e216ee273f5d2f169ce29f36c" and "5962fd7c123fa867b536086b4169393d14f248fb" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ def last_tilde(msg):
if callable(data): if callable(data):
datax = inspect.getclosurevars(data).nonlocals datax = inspect.getclosurevars(data).nonlocals
if len(datax) == 0: if len(datax) == 0:
data = ' '.join(inspect.getsource(data).rsplit()) data = inspect.getsource(data)
else: data = datax else: data = datax
if answer is None: if answer is None:
data = str(data) data = str(data)
answer = f"{nick}'s last tilde's answer was supposed to be `{data}`." answer = f"{pnick}'s last tilde's answer was supposed to be `{data}`."
return pinhook.plugin.message(answer) return pinhook.plugin.message(answer)