[:1] -> [:-1]

This commit is contained in:
jesopo 2019-09-15 22:52:20 +01:00
parent 52a7bf400f
commit b8adb6f52d

View file

@ -84,7 +84,7 @@ class Module(ModuleManager.BaseModule):
target = event["match"].group(2).strip().rstrip("".join(WORD_STOP))
if event["match"].group(1):
if not target:
target = event["match"].group(1)[:1]
target = event["match"].group(1)[:-1]
elif not event["server"].has_user(event["match"].group(1)[:-1]):
target = "%s %s" % (event["match"].group(1), target)