mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
reddit: fix command splitting creating empty tokens
This commit is contained in:
parent
5de54e005c
commit
490b6304da
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ class RedditNetwork(Network):
|
|||
exidx=line.find('!')
|
||||
if exidx!=-1 and len(line)>exidx+1 and line[exidx+1] in string.ascii_letters and self.is_acceptable_command_prefix(line[:exidx]):
|
||||
cmd=line[exidx+1:].split(' ')
|
||||
while '' in cmd:
|
||||
cmd.remove('')
|
||||
cmd[0] = cmd[0].strip(' \t\n\r')
|
||||
log_info('Found command from %s: %s' % (link.identity(), str(cmd)))
|
||||
if self.on_command:
|
||||
|
|
Loading…
Reference in a new issue