summaryrefslogtreecommitdiff
path: root/shbot.sh
diff options
context:
space:
mode:
authorJulien Dessaux2013-11-05 14:30:18 -0800
committerJulien Dessaux2013-11-05 14:30:18 -0800
commit44ddc623e4b317a31a120fb9463d634dbb37a1dd (patch)
treeb2ccc8c89db8bd3d34c8688cf737595f13c9d08f /shbot.sh
parentAdded the quote module (diff)
parentAdded the duck generation module. (diff)
downloadshbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.tar.gz
shbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.tar.bz2
shbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.zip
Merge pull request #1 from vivia/master
Misc bugfixes, added duck module
Diffstat (limited to 'shbot.sh')
-rwxr-xr-xshbot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shbot.sh b/shbot.sh
index 066d202..0deee12 100755
--- a/shbot.sh
+++ b/shbot.sh
@@ -11,7 +11,7 @@ do
if [[ "$LINE" =~ PING\ *:(.*) ]]; then
echo "PONG :${BASH_REMATCH[1]}" >&3
else
- [[ ${LINE} =~ :[a-zA-Z]*!.*(#.*)\ :.* ]] && ORIGIN=${BASH_REMATCH[1]}
+ [[ ${LINE} =~ :[^!]*![^#]*(#.*)\ :.* ]] && ORIGIN=${BASH_REMATCH[1]}
echo "${LINE}" | ./shbrain.sh | \
while true
do