mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
reddit: allow tips after arbitrary text
This commit is contained in:
parent
3aafbb3de2
commit
a59acafd48
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ class RedditNetwork(Network):
|
|||
else:
|
||||
# reddit special: +x as a reply means tip
|
||||
if not is_pm and hasattr(item,'parent_id'):
|
||||
line=line.replace(self.keyword,'').strip()
|
||||
if re.match("\+[0-9]*(\.[0-9]*)?",line):
|
||||
if re.search("\+[0-9]*(\.[0-9]*)?[\t ]+"+self.keyword,line) or re.search(self.keyword+"[\t ]+\+[0-9]*(\.[0-9]*)?",line):
|
||||
line=line.replace(self.keyword,'').strip()
|
||||
if self.on_command:
|
||||
try:
|
||||
parent_item=self.reddit.get_info(thing_id=item.parent_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue