git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
751d0dc
)
Security.
author
CMDR furrycat
<elite@furrycat.net>
Fri, 16 Sep 2016 12:16:03 +0000
(13:16 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Mon, 19 Sep 2016 20:10:27 +0000
(21:10 +0100)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
dc1b773
..
bd70c38
100755
(executable)
--- a/
bot.py
+++ b/
bot.py
@@
-105,7
+105,7
@@
def do_edi(message, command, raw, p):
@asyncio.coroutine
def do_fork(message, command, raw):
yield from client.send_typing(message.channel)
- if re.search(r'[^A-Za-z0-9-_."\'
"
]', raw):
+ if re.search(r'[^A-Za-z0-9-_."\'
\s
]', raw):
yield from say(message.channel, 'hiss')
return
p = pexpect.spawnu('./{}'.format(raw))