Only strip word stops from the right of a word

This commit is contained in:
jesopo 2019-03-28 14:35:20 +00:00
parent 3f8d5e9f50
commit 023c6c9264

View file

@ -35,7 +35,7 @@ class Module(ModuleManager.BaseModule):
if not event["user"].last_karma or (time.time()-event["user" if not event["user"].last_karma or (time.time()-event["user"
].last_karma) >= KARMA_DELAY_SECONDS: ].last_karma) >= KARMA_DELAY_SECONDS:
target = match.group(1).strip().strip("".join(WORD_STOP)) target = match.group(1).strip().rstrip("".join(WORD_STOP))
if event["server"].irc_lower(target) == event["user"].name: if event["server"].irc_lower(target) == event["user"].name:
if verbose: if verbose:
self.events.on("send.stderr").call( self.events.on("send.stderr").call(