parse "nick: ++" as "nick++"

This commit is contained in:
jesopo 2019-09-15 22:47:50 +01:00
parent 21fa2120df
commit 30ead4dcb6

View file

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